SdkRuntimeException to be created by the "create exception" methods.
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 |
|---|---|
| public E | createRuntimeException(int statusCode, String opcRequestId, ERRMODEL errorResponse, ServiceDetails serviceDetails)
|
| public E | createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails)
|
| public E | createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause, ServiceDetails serviceDetails)
|
| public Class | Returns: a Class that represents the type of model in the response error, which can be used to deserialize the response content.
|
| createRuntimeException | back to summary |
|---|---|
| public E createRuntimeException(int statusCode, String opcRequestId, ERRMODEL errorResponse, ServiceDetails serviceDetails) | |
| createRuntimeException | back to summary |
|---|---|
| public E createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails) | |
| createRuntimeException | back to summary |
|---|---|
| public E createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause, ServiceDetails serviceDetails) | |
| getResponseErrorModelType | back to summary |
|---|---|
public Class
| |