Table of Contents

Interface IResponseUnmarshaller<T, R>

Namespace
Amazon.Runtime.Internal.Transform
Assembly
AWSSDK.Core.dll

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 R

The XML parsing context.

innerException Exception

An inner exception to be included with the returned exception

statusCode HttpStatusCode

The 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.