IFailedPartnerServiceResponseHandler Interface

public interface IFailedPartnerServiceResponseHandler

Defines behavior for handling non successful responses from the partner service.

Method Summary

Modifier and Type Method and Description
abstract PartnerException handleFailedResponse(Response response)

Handles failed partner service responses.

abstract PartnerException handleFailedResponse(Response response, IRequestContext context)

Handles failed partner service responses.

Method Details

handleFailedResponse

public abstract PartnerException handleFailedResponse(Response response)

Handles failed partner service responses.

Parameters:

response - The partner service response.

Returns:

The exception to throw.

handleFailedResponse

public abstract PartnerException handleFailedResponse(Response response, IRequestContext context)

Handles failed partner service responses.

Parameters:

response - The partner service response.
context - The reqeust context.

Returns:

The exception to throw.

Applies to