Class ExtensionMethodsFailure
Presents helpers to deal with exceptions.
public static class ExtensionMethodsFailure
- Inheritance
-
ExtensionMethodsFailure
- Inherited Members
Methods (2)
GetExceptionAndInnerExceptionTypeAndMessage(Exception)
Get a multi-lines string containing the exception type and message, and if it has an inner-exception, its type and message are also shown.
public static string GetExceptionAndInnerExceptionTypeAndMessage(this Exception exception)
Parameters
exceptionExceptionThe exception
Returns
- string
The multi-lines string.
GetExceptionAndInnerExceptionTypeMessageAndStackTrace(Exception)
Get a multi-lines string containing the exception type, message and stacktrace, and if it has an inner-exception, its type, message and stacktrace are also shown.
public static string GetExceptionAndInnerExceptionTypeMessageAndStackTrace(this Exception exception)
Parameters
exceptionExceptionThe exception
Returns
- string
The multi-lines string.
Remarks
The frames in the stack trace will contains IL instructions offset.