IRestExceptionDecoder.DecodeException 方法

定义

解码异常的详细信息。

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

参数

eexception
Exception

要解码的 Excption

httpStatusCode
HttpStatusCode

错误的 HTTP 状态代码。

restStatus
String

错误的 REST 状态。

getExtendedErrors
Boolean

是否提取 REST 错误代码。

返回

一个值,该值指示异常是否已解码。

适用于