Interface IResponseUnmarshaller<T, R>
Interface for unmarshallers which unmarshall service responses. The Unmarshallers are stateless, and only encode the rules for what data in the XML stream goes into what members of an object.
public interface IResponseUnmarshaller<T, R> : IUnmarshaller<T, R>
Type Parameters
TThe type of object the unmarshaller returns
RThe type of the XML unmashaller context, which contains the state of parsing the XML stream. Uaually an instance of
Amazon.Runtime.Internal.Transform.UnmarshallerContext.
- Inherited Members
Methods
UnmarshallException(R, Exception, HttpStatusCode)
Extracts an exeption with data from an ErrorResponse.
AmazonServiceException UnmarshallException(R input, Exception innerException, HttpStatusCode statusCode)
Parameters
inputRThe XML parsing context.
innerExceptionExceptionAn inner exception to be included with the returned exception
statusCodeHttpStatusCodeThe HttpStatusCode from the ErrorResponse
Returns
- AmazonServiceException
Either an exception based on the ErrorCode from the ErrorResponse, or the general service exception for the service in question.