Initializes an AmazonS3Exception with error information provided in an
AmazonS3 response.
Declaration Syntax
C# |
public AmazonS3Exception( string message, HttpStatusCode statusCode, string errorCode, string requestId, string hostId, string xml, string requestAddr, WebHeaderCollection responseHeaders )
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
- hostId (String)
- S3 Host ID returned by the service
- xml (String)
- Compete xml found in response
- requestAddr (String)
- The S3 request url
- responseHeaders (WebHeaderCollection)
- The response headers containing S3 specific information