|Synopsis:||Use standard exceptions|
The following list of exceptions are too generic and should not be raised directly by your code:
- Any exception which is reserved for use by the CLR only (check MSDN for this)
The .NET framework already provides a set of common exceptions. The table below summarizes the most common exceptions that are available for applications.
|InvalidOperationException||An action is performed which is not valid considering the objectís current state.
|NotSupportedException||An action is performed which is may be valid in the future, but is not supported.
|ArgumentException||An incorrect argument is supplied.
|ArgumentNullException||A null reference is supplied as a methodís parameter that does not allow null.
|ArgumentOutOfRangeException||An argument is not within the required range.