 | ResponseErrorFromException 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 ResponseError FromException(
Exception ex,
bool includesStackTrace
)
Public Shared Function FromException (
ex As Exception,
includesStackTrace As Boolean
) As ResponseError
Dim ex As Exception
Dim includesStackTrace As Boolean
Dim returnValue As ResponseError
returnValue = ResponseError.FromException(ex,
includesStackTrace)
public:
static ResponseError^ FromException(
Exception^ ex,
bool includesStackTrace
)
static member FromException :
ex : Exception *
includesStackTrace : bool -> ResponseError
Parameters
- ex
- Type: SystemException
The exception containing the error information. - includesStackTrace
- Type: SystemBoolean
Whether to include StackTrace from the given exception. Note that the stack trace may contain sensitive information.
Return Value
Type:
ResponseError
Exceptions
See Also