ExceptionExtensions Class |
Namespace: NetQuarry
The ExceptionExtensions type exposes the following members.
Name | Description | |
---|---|---|
ContainsException |
Determines whether or not the exception or one of its nested internal exceptions is of the specified exception type.
For example: bool isAuth = ex.ContainsException(typeof(System.Security.Authentication.AuthenticationException)); | |
DeveloperMessage |
Gets any developer-specific message content from DeveloperMessage.
| |
IsAuthenticationException |
Determines if the exception or one of its nested internal exceptions is an authentication exception.
Currently only AuthenticationException is recognized.
| |
IsDBException |
Determines if the exception is a database provider originated exception.
Currently only SqlException is recognized.
| |
MayRequireSuppression |
Determines whether this exception, (or any of its inner exceptions if considerEntireExceptionStack is specified),
may contain sensitive information that should be suppressed when when UnhandledErrorSuppression is enabled.
Currently exceptions where IsDBException(Exception) is true and EAPException exceptions with
IsSensitive set are considered to require suppression.
| |
SuppressInner |
Gets whether or not this exception has been marked to suppress inner exceptions when generating a non-developer user error messages.
See SuppressInner.
| |
VerboseMessage |
Gets a verbose string representation of the exception.
The string is intended to look just like the standard .Net Exception.ToString() output except
that it includes DeveloperMessage, if any, if the exception implements
the IEAPExtendedException interface (as does the EAPException class used as the
base class for most platform exceptions).
As with the standard .Net Exception.ToString() method, the returned string will include the stack trace
and the verbose message for any internal exceptions (recursively).
|