IRestExceptionDecoder.DecodeException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decode details of the exception.
public bool DecodeException (Exception e, out System.Net.HttpStatusCode httpStatusCode, out string restStatus, bool getExtendedErrors = false);
public bool DecodeException (Exception exception, out System.Net.HttpStatusCode httpStatusCode, out string restStatus, bool getExtendedErrors = false);
abstract member DecodeException : Exception * HttpStatusCode * string * bool -> bool
abstract member DecodeException : Exception * HttpStatusCode * string * bool -> bool
Public Function DecodeException (e As Exception, ByRef httpStatusCode As HttpStatusCode, ByRef restStatus As String, Optional getExtendedErrors As Boolean = false) As Boolean
Public Function DecodeException (exception As Exception, ByRef httpStatusCode As HttpStatusCode, ByRef restStatus As String, Optional getExtendedErrors As Boolean = false) As Boolean
Parameters
- eexception
- Exception
Excption to decode
- httpStatusCode
- HttpStatusCode
HTTP status code for the error.
- restStatus
- String
REST status for the error.
- getExtendedErrors
- Boolean
Whether or not to extract REST error code.
Returns
A value indicating whether the exception was decoded.