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
T
The type of object the unmarshaller returns
R
The 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
input
RThe XML parsing context.
innerException
ExceptionAn inner exception to be included with the returned exception
statusCode
HttpStatusCodeThe 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.