ExceptionExtensionsMayRequireSuppression Method |
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.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool MayRequireSuppression(
this Exception ex,
bool considerEntireExceptionStack
)
<ExtensionAttribute>
Public Shared Function MayRequireSuppression (
ex As Exception,
considerEntireExceptionStack As Boolean
) As Boolean
Parameters
- ex
- Type: SystemException
The exception to consider. - considerEntireExceptionStack
- Type: SystemBoolean
Specifies whether to consider only THIS exception, or this exception and all inner exceptions.
Return Value
Type:
BooleanTrue if suppression may be warranted.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also