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, 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(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) |
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, 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. |
RequestFailedException(String) |
Initializes a new instance of the RequestFailedException class with a specified error message. |
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. |