Initializes an AmazonCloudFrontException with error information provided in an
AmazonCloudFront response.
Declaration Syntax
C# |
public AmazonCloudFrontException( string message, HttpStatusCode statusCode, string errorCode, string requestId, string type, string xml, string requestAddr, WebHeaderCollection responseHeaders, Exception innerException )
Parameters
- message (String)
- Overview of error
- statusCode (HttpStatusCode)
- HTTP status code for error response
- errorCode (String)
- Error Code returned by the service
- requestId (String)
- Request ID returned by the service
- type (String)
- Error Type
- xml (String)
- Compete xml found in response
- requestAddr (String)
- The CloudFront request url
- responseHeaders (WebHeaderCollection)
- The response headers containing CloudFront specific information
- innerException (Exception)
- The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.