 | UtilsTExtensionCatchTException Method |
Catches the exception in a specific type
Namespace:
EBP.Api
Assembly:
EBP.Api (in EBP.Api.dll) Version: 1.0.2835.45 (1.0.2835.45)
Syntaxpublic static TException Catch<TException>(
Exception exception
)
where TException : IException
Public Shared Function Catch(Of TException As IException) (
exception As Exception
) As TException
Parameters
- exception
- Type: SystemException
exception to catch
Type Parameters
- TException
- exception type. Must be a IException descendent
Return Value
Type:
TExceptionThe typed exception. If the exception can't be casted, returns null
See Also