IRestExceptionDecoder.DecodeException 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解碼例外狀況的詳細資料。
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 錯誤碼。
傳回
值,指出是否已解碼例外狀況。