RequestFailedException Class

Definition

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
System.Exception
RequestFailedException
Derived
Attributes
System.SerializableAttribute
Implements
System.Runtime.Serialization.ISerializable

Constructors

RequestFailedException(Int32, String)

Initializes a new instance of the RequestFailedException class with a specified error message and HTTP status code.

RequestFailedException(Int32, String, Exception)

Initializes a new instance of the RequestFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

RequestFailedException(Int32, String, String, Exception)

Initializes a new instance of the RequestFailedException class with a specified error message, HTTP status code, error code, and a reference to the inner exception that is the cause of this exception.

RequestFailedException(SerializationInfo, StreamingContext)

Initializes a new instance of the System.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. 0 if response was not received.

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

Applies to