| ExceptionUtilsIsOrContains Method |
Returns true if an exception is of a certain inherited exception class or if the exception contains
an inner exception (on any level) that is of the certain inherited exception class.
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static bool IsOrContains(
Exception exception,
Type desiredException,
out string exceptionMessage
)
Parameters
- exception
- Type: SystemException
Exception object to be inspected.
- desiredException
- Type: SystemType
The exception class to be looked for.
- exceptionMessage
- Type: SystemString
If the method returns true the exceptionMessage contains the message of the located exception object.
If not exceptionMessage is null.
Return Value
Type:
Boolean
True if the desired exception class is found.
See Also