Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RequestFailedException Class

Definition

Namespace:
Azure
Assembly:
Azure.Core.dll
Package:
Azure.Core v1.58.0
Source:
RequestFailedException.cs

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

Name Description
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

Name Description
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. 0 if response was not received.

Methods

Name Description
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


Feedback

Was this page helpful?