| ExceptionUtilsGetInnerExceptionOfType Method |
Searches the stack of inner exceptions for a certain inherited exception class
including the provided exception
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static Exception GetInnerExceptionOfType(
Exception exception,
Type desiredException
)
Parameters
- exception
- Type: SystemException
Exception object to be inspected.
- desiredException
- Type: SystemType
The exception class to be looked for.
Return Value
Type:
Exception
The instance of the desired exception class if found. If not found, it returns null.
See Also