public class ODataVdmErrorResultHandler extends com.sap.cloud.sdk.odatav2.connectivity.internal.DefaultErrorResultHandler<ODataVdmErrorResultHandler.ErpODataException>
ODataVdmErrorResultHandler.ErpODataException
. This class is the default
ErrorResultHandler used in the OData VDM. You can register a different error handler using the withErrorHandler()
method (for the VDM as well as for the underlying request builders).Modifier and Type | Class and Description |
---|---|
static class |
ODataVdmErrorResultHandler.ErpODataException |
Constructor and Description |
---|
ODataVdmErrorResultHandler() |
Modifier and Type | Method and Description |
---|---|
ODataVdmErrorResultHandler.ErpODataException |
createError(String message,
Object origin,
int httpStatusCode)
This method takes an error in the form of an error message, an error JSON or an HTML document, the origin (i.e.
|
protected Class<ODataVdmErrorResultHandler.ErpODataException> |
getExceptionType() |
protected Class<ODataVdmErrorResultHandler.ErpODataException> getExceptionType()
getExceptionType
in class com.sap.cloud.sdk.odatav2.connectivity.internal.DefaultErrorResultHandler<ODataVdmErrorResultHandler.ErpODataException>
@Nonnull public ODataVdmErrorResultHandler.ErpODataException createError(@Nonnull String message, @Nullable Object origin, int httpStatusCode)
ODataVdmErrorResultHandler.ErpODataException
.createError
in interface com.sap.cloud.sdk.odatav2.connectivity.ErrorResultHandler<ODataVdmErrorResultHandler.ErpODataException>
createError
in class com.sap.cloud.sdk.odatav2.connectivity.internal.DefaultErrorResultHandler<ODataVdmErrorResultHandler.ErpODataException>
message
- The error message as String.origin
- The query that caused the error.httpStatusCode
- The HTTP status code returned with the error.ODataVdmErrorResultHandler.ErpODataException
.Copyright © 2020 SAP SE. All rights reserved.