Compartir a través de


IRestExceptionDecoder.DecodeException Método

Definición

Descodificar los detalles de la excepción.

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

Parámetros

eexception
Exception

Excption to descodificar

httpStatusCode
HttpStatusCode

Código de estado HTTP para el error.

restStatus
String

Estado de REST para el error.

getExtendedErrors
Boolean

Indica si se va a extraer o no el código de error de REST.

Devoluciones

Valor que indica si la excepción se descodificó.

Se aplica a