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 错误代码。
返回
一个值,该值指示异常是否已解码。