Class ODataServiceErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataResponseException
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataServiceErrorException
- All Implemented Interfaces:
Serializable
An
ODataException
representing an erroneous response from the service where the payload contained detailed
OData error information.- See Also:
-
Constructor Summary
ConstructorDescriptionODataServiceErrorException
(ODataRequestGeneric request, org.apache.http.HttpResponse httpResponse, String message, Throwable cause, ODataServiceError odataError) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The parsedODataServiceError
that was found in the HTTP response body.int
hashCode()
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.exception.ODataResponseException
getHttpBody, getHttpCode, getHttpHeaders
Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException
getRequest
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ODataServiceErrorException
public ODataServiceErrorException(@Nonnull ODataRequestGeneric request, @Nonnull org.apache.http.HttpResponse httpResponse, @Nonnull String message, @Nullable Throwable cause, @Nonnull ODataServiceError odataError) Default constructor.- Parameters:
request
- The original OData request reference.httpResponse
- The failing HTTP response reference.message
- The error message.cause
- The error cause, if any.odataError
- The parsedodata error
contained in the HTTP response.
-
-
Method Details
-
equals
- Overrides:
equals
in classODataResponseException
-
canEqual
- Overrides:
canEqual
in classODataResponseException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classODataResponseException
-
getOdataError
The parsedODataServiceError
that was found in the HTTP response body.
-