RequestFailedException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An exception thrown when service request fails.
[System.Serializable]
public class RequestFailedException : Exception
[<System.Serializable>]
type RequestFailedException = class
inherit Exception
interface ISerializable
Public Class RequestFailedException
Inherits Exception
- Inheritance
-
RequestFailedException
- Derived
- Attributes
- Implements
Constructors
RequestFailedException(Response) |
Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response. |
RequestFailedException(Response, Exception) |
Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response. |
RequestFailedException(Response, Exception, RequestFailedDetailsParser) |
Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response. |
RequestFailedException(SerializationInfo, StreamingContext) |
Initializes a new instance of the Exception class with serialized data. |
RequestFailedException(String) |
Initializes a new instance of the RequestFailedException class with a specified error message. |
RequestFailedException(String, Exception) |
Initializes a new instance of the RequestFailedException class with a specified error message, HTTP status code and a reference to the inner exception that is the cause of this exception. |
Properties
ErrorCode |
Gets the service specific error code if available. Please refer to the client documentation for the list of supported error codes. |
Status |
Gets the HTTP status code of the response. Returns. |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
When overridden in a derived class, sets the SerializationInfo with information about the exception. |
GetRawResponse() |
Gets the response, if any, that led to the exception. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應