Package com.oracle.bmc.http.internal
Interface ResponseErrorRuntimeExceptionFactory<ERRMODEL,E extends SdkRuntimeException>
- 
- Type Parameters:
- ERRMODEL- The model type that represents the model in the response error.
- E- A- SdkRuntimeExceptionto be created by the “create exception” methods.
 - All Known Implementing Classes:
- ResponseErrorBmcExceptionFactory
 
 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 aSdkRuntimeExceptionthat 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 SdkRuntimeExceptionimplementation to pass on that information in the deserialized response.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description EcreateRuntimeException(int statusCode, String opcRequestId, ERRMODEL errorResponse, ServiceDetails serviceDetails)EcreateRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails)EcreateRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, Throwable cause, ServiceDetails serviceDetails)Class<ERRMODEL>getResponseErrorModelType()
 
- 
- 
- 
Method Detail- 
getResponseErrorModelTypeClass<ERRMODEL> getResponseErrorModelType() - Returns:
- a Class that represents the type of model in the response error, which can be used to deserialize the response content.
 
 - 
createRuntimeExceptionE createRuntimeException(int statusCode, String opcRequestId, ERRMODEL errorResponse, ServiceDetails serviceDetails) 
 - 
createRuntimeExceptionE createRuntimeException(int statusCode, String serviceCode, String message, String opcRequestId, ServiceDetails serviceDetails) 
 
- 
 
-