Sdílet prostřednictvím


RequestFailedException Constructors

Definition

Overloads

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(String)

Initializes a new instance of the RequestFailedException class with a specified error message.

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(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(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)

Source:
RequestFailedException.cs

Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response.

public RequestFailedException (Azure.Response response);
new Azure.RequestFailedException : Azure.Response -> Azure.RequestFailedException
Public Sub New (response As Response)

Parameters

response
Response

The response to obtain error details from.

Applies to

RequestFailedException(String)

Source:
RequestFailedException.cs

Initializes a new instance of the RequestFailedException class with a specified error message.

public RequestFailedException (string message);
new Azure.RequestFailedException : string -> Azure.RequestFailedException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

RequestFailedException(Response, Exception)

Source:
RequestFailedException.cs

Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response.

public RequestFailedException (Azure.Response response, Exception? innerException);
new Azure.RequestFailedException : Azure.Response * Exception -> Azure.RequestFailedException
Public Sub New (response As Response, innerException As Exception)

Parameters

response
Response

The response to obtain error details from.

innerException
Exception

An inner exception to associate with the new RequestFailedException.

Applies to

RequestFailedException(SerializationInfo, StreamingContext)

Source:
RequestFailedException.cs

Initializes a new instance of the Exception class with serialized data.

protected RequestFailedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Azure.RequestFailedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Azure.RequestFailedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

info is null.

The class name is null or HResult is zero (0).

Applies to

RequestFailedException(String, Exception)

Source:
RequestFailedException.cs

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.

public RequestFailedException (string message, Exception? innerException);
new Azure.RequestFailedException : string * Exception -> Azure.RequestFailedException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to

RequestFailedException(Response, Exception, RequestFailedDetailsParser)

Source:
RequestFailedException.cs

Initializes a new instance of the RequestFailedException class with an error message, HTTP status code, and error code obtained from the specified response.

public RequestFailedException (Azure.Response response, Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser);
new Azure.RequestFailedException : Azure.Response * Exception * Azure.Core.RequestFailedDetailsParser -> Azure.RequestFailedException
Public Sub New (response As Response, innerException As Exception, detailsParser As RequestFailedDetailsParser)

Parameters

response
Response

The response to obtain error details from.

innerException
Exception

An inner exception to associate with the new RequestFailedException.

detailsParser
RequestFailedDetailsParser

The parser to use to parse the response content.

Applies to