 | ClrExceptionErrorDataFromException Method (Exception, Boolean) |
[This is preliminary documentation and is subject to change.]
Namespace:
JsonRpc.Messages
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic static ClrExceptionErrorData FromException(
Exception ex,
bool includesStackTrace
)
Public Shared Function FromException (
ex As Exception,
includesStackTrace As Boolean
) As ClrExceptionErrorData
Dim ex As Exception
Dim includesStackTrace As Boolean
Dim returnValue As ClrExceptionErrorData
returnValue = ClrExceptionErrorData.FromException(ex,
includesStackTrace)
public:
static ClrExceptionErrorData^ FromException(
Exception^ ex,
bool includesStackTrace
)
static member FromException :
ex : Exception *
includesStackTrace : bool -> ClrExceptionErrorData
Parameters
- ex
- Type: SystemException
The exception from which to extract error data. - includesStackTrace
- Type: SystemBoolean
Whether to set StackTrace from the given exception. Note that the stack trace may contain sensitive information.
Return Value
Type:
ClrExceptionErrorData
Exceptions
See Also