Class ODataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ODataRequestException
,ODataResponseException
The generic OData exception.
Its sub-types will be thrown in the following scenarios:
Its sub-types will be thrown in the following scenarios:
ODataSerializationException
If entity cannot be serialized for HTTP request.ODataConnectionException
When the HTTP connection cannot be established.ODataRequestException
When the OData request could not be sent due to a generic reason.ODataResponseException
If the response code infers an unhealthy state, i.e. when >= 400ODataDeserializationException
When deserialization process failed for the OData response object.ODataServiceErrorException
If the response contains an OData error in the payload.
- See Also:
-
Constructor Summary
ConstructorDescriptionODataException
(ODataRequestGeneric request, String message, Throwable cause) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The OData request that was attempted while this exception occurred.int
hashCode()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ODataException
public ODataException(@Nonnull ODataRequestGeneric request, @Nonnull String message, @Nullable Throwable cause) Default constructor.- Parameters:
request
- The original OData request reference.message
- The error message.cause
- The error cause.
-
-
Method Details