C# Class Amazon.Runtime.AmazonServiceException

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.

Inheritance: System.Exception
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AmazonServiceException ( ) : System
AmazonServiceException ( Exception innerException ) : System
AmazonServiceException ( string message ) : System
AmazonServiceException ( string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode ) : System
AmazonServiceException ( string message, Exception innerException ) : System
AmazonServiceException ( string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode ) : System
AmazonServiceException ( string message, Exception innerException, HttpStatusCode statusCode ) : System

Protected Methods

Method Description
AmazonServiceException ( System info, System context ) : System

Constructs a new instance of the AmazonServiceException class with serialized data.

Private Methods

Method Description
BuildGenericErrorMessage ( string errorCode, HttpStatusCode statusCode ) : string
GetObjectData ( System info, System context ) : void

Method Details

AmazonServiceException() public method

public AmazonServiceException ( ) : System
return System

AmazonServiceException() public method

public AmazonServiceException ( Exception innerException ) : System
innerException System.Exception
return System

AmazonServiceException() protected method

Constructs a new instance of the AmazonServiceException class with serialized data.
The parameter is null. The class name is null or is zero (0).
protected AmazonServiceException ( System info, System context ) : System
info System The that holds the serialized object data about the exception being thrown.
context System The that contains contextual information about the source or destination.
return System

AmazonServiceException() public method

public AmazonServiceException ( string message ) : System
message string
return System

AmazonServiceException() public method

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

AmazonServiceException() public method

public AmazonServiceException ( string message, Exception innerException ) : System
message string
innerException System.Exception
return System

AmazonServiceException() public method

public AmazonServiceException ( string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode ) : System
message string
innerException System.Exception
errorType ErrorType
errorCode string
requestId string
statusCode HttpStatusCode
return System

AmazonServiceException() public method

public AmazonServiceException ( string message, Exception innerException, HttpStatusCode statusCode ) : System
message string
innerException System.Exception
statusCode HttpStatusCode
return System