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
ConstructorsConstructorDescriptionODataServiceErrorException(ODataRequestGeneric request, org.apache.http.HttpResponse httpResponse, String message, Throwable cause, ODataServiceError odataError) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe parsedODataServiceErrorthat was found in the HTTP response body.inthashCode()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.client.exception.ODataResponseException
getHttpBody, getHttpCode, getHttpHeadersMethods inherited from class com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException
getRequestMethods 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 errorcontained in the HTTP response.
-
-
Method Details
-
equals
- Overrides:
equalsin classODataResponseException
-
canEqual
- Overrides:
canEqualin classODataResponseException
-
hashCode
public int hashCode()- Overrides:
hashCodein classODataResponseException
-
getOdataError
The parsedODataServiceErrorthat was found in the HTTP response body.
-