Class InvalidDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
de.hybris.platform.odata2services.odata.OData2ServicesException
de.hybris.platform.odata2services.odata.InvalidDataException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidNavigationPropertyException,MissingKeyException,MissingLanguageException,RetrievalErrorRuntimeException
Exception to throw for error scenarios produced by invalid Data.
Will result in HttpStatus 400
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidDataException(String message, String errorCode, String entityType) Constructor to create InvalidDataExceptionInvalidDataException(String message, String errorCode, Throwable e, String entityType) Constructor to create InvalidDataException -
Method Summary
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
getCode, getHttpStatus, getLocaleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidDataException
Constructor to create InvalidDataException- Parameters:
message- error messageerrorCode- error code
-
InvalidDataException
Constructor to create InvalidDataException- Parameters:
message- error messageerrorCode- error codee- exception to get Message fromentityType- entityTypeName for the current entity that is under concern
-
-
Method Details
-
getEntityType
-