共用方式為


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 錯誤碼。

傳回

值,指出是否已解碼例外狀況。

適用於