Edit

Share via


IRestExceptionDecoder.DecodeException Method

Definition

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.

Applies to