Compartilhar via


IRestExceptionDecoder.DecodeException Método

Definição

Decodificar detalhes da exceção.

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 para decodificar

httpStatusCode
HttpStatusCode

Código de status HTTP para o erro.

restStatus
String

Status REST do erro.

getExtendedErrors
Boolean

Se o código de erro REST deve ou não ser extraído.

Retornos

Um valor que indica se a exceção foi decodificada.

Aplica-se a