Hi,
In .NET, when catching exceptions, should I always catch derived exceptions (so not ArgumentException but the derived types)?
Also:
If I am asked to use error codes, would this be in the constructor like so?:
throw new Exception("4000", ex);
Or a custom exception type with an errorcode property? (This may get confusing with exception types like SqlException which have error codes mapping to SQL Server errors).
Thanks