ERRMODEL
- The model type that represents the model in the response error.E
- A SdkRuntimeException
to be created by the “create exception” methods.public interface ResponseErrorRuntimeExceptionFactory<ERRMODEL,E extends SdkRuntimeException>
Factory interface that defines the model type of a response error (used for deserializing a
response error), as well as how to create a SdkRuntimeException
that allows access
to that deserialized error.
This factory allows client code to inject their own error handling code, complete with their
own error model and SdkRuntimeException
implementation to pass on that information
in the deserialized response.
Modifier and Type | Method and Description |
---|---|
E |
createRuntimeException(int statusCode,
String opcRequestId,
ERRMODEL errorResponse,
ServiceDetails serviceDetails) |
E |
createRuntimeException(int statusCode,
String serviceCode,
String message,
String opcRequestId,
ServiceDetails serviceDetails) |
E |
createRuntimeException(int statusCode,
String serviceCode,
String message,
String opcRequestId,
Throwable cause,
ServiceDetails serviceDetails) |
Class<ERRMODEL> |
getResponseErrorModelType() |
Class<ERRMODEL> getResponseErrorModelType()
E createRuntimeException(int statusCode, String opcRequestId, ERRMODEL errorResponse, ServiceDetails serviceDetails)
E createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails)
Copyright © 2016–2024. All rights reserved.