Extracts an exeption with data from an ErrorResponse.
Declaration Syntax
C# |
AmazonServiceException UnmarshallException( R input, Exception innerException, HttpStatusCode statusCode )
Parameters
- input (R)
- The XML parsing context.
- innerException (Exception)
- An inner exception to be included with the returned exception
- statusCode (HttpStatusCode)
- The HttpStatusCode from the ErrorResponse
Return Value
Either an exception based on the ErrorCode from the ErrorResponse, or the
general service exception for the service in question.