Class ODataSerializationException
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.ODataRequestException
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataSerializationException
- All Implemented Interfaces:
Serializable
OData serialization exception type to focus on serialization errors when creating the service request.
- See Also:
-
Constructor Summary
ConstructorDescriptionODataSerializationException
(ODataRequestGeneric request, Object nonSerializableObject, String message, Throwable cause) Default constructor. -
Method Summary
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
-
ODataSerializationException
public ODataSerializationException(@Nonnull ODataRequestGeneric request, @Nonnull Object nonSerializableObject, @Nonnull String message, @Nullable Throwable cause) Default constructor.- Parameters:
request
- The original OData request reference.nonSerializableObject
- The non serializable object.message
- The error message.cause
- The error cause.
-
-
Method Details
-
equals
- Overrides:
equals
in classODataRequestException
-
canEqual
- Overrides:
canEqual
in classODataRequestException
-
hashCode
public int hashCode()- Overrides:
hashCode
in classODataRequestException
-
getNonSerializableObject
The object for which serialization failed.
-