Table of Contents

Class AmazonServiceException

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

A base exception for some Amazon Web Services.

Most exceptions thrown to client code will be service-specific exceptions, though some services may throw this exception if there is a problem which is caught in the core client code.

public class AmazonServiceException : Exception, ISerializable
Inheritance
AmazonServiceException
Implements
Derived
Inherited Members

Constructors

AmazonServiceException()

public AmazonServiceException()

AmazonServiceException(Exception)

public AmazonServiceException(Exception innerException)

Parameters

innerException Exception

AmazonServiceException(string)

public AmazonServiceException(string message)

Parameters

message string

AmazonServiceException(string, ErrorType, string, string, HttpStatusCode)

public AmazonServiceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)

Parameters

message string
errorType ErrorType
errorCode string
requestId string
statusCode HttpStatusCode

AmazonServiceException(string, Exception)

public AmazonServiceException(string message, Exception innerException)

Parameters

message string
innerException Exception

AmazonServiceException(string, Exception, ErrorType, string, string, HttpStatusCode)

public AmazonServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)

Parameters

message string
innerException Exception
errorType ErrorType
errorCode string
requestId string
statusCode HttpStatusCode

AmazonServiceException(string, Exception, HttpStatusCode)

public AmazonServiceException(string message, Exception innerException, HttpStatusCode statusCode)

Parameters

message string
innerException Exception
statusCode HttpStatusCode

Properties

ErrorCode

The error code returned by the service

public string ErrorCode { get; set; }

Property Value

string

ErrorType

Whether the error was attributable to Sender or Reciever.

public ErrorType ErrorType { get; set; }

Property Value

ErrorType

RequestId

The id of the request which generated the exception.

public string RequestId { get; set; }

Property Value

string

Retryable

Flag indicating if the exception is retryable and the associated retry details. A null value indicates that the exception is not retryable.

public virtual RetryableDetails Retryable { get; }

Property Value

RetryableDetails

StatusCode

The HTTP status code from the service response

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode