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

public class InvalidDataException extends OData2ServicesException
Exception to throw for error scenarios produced by invalid Data. Will result in HttpStatus 400
See Also:
  • Constructor Details

    • InvalidDataException

      public InvalidDataException(String message, String errorCode, String entityType)
      Constructor to create InvalidDataException
      Parameters:
      message - error message
      errorCode - error code
    • InvalidDataException

      public InvalidDataException(String message, String errorCode, Throwable e, String entityType)
      Constructor to create InvalidDataException
      Parameters:
      message - error message
      errorCode - error code
      e - exception to get Message from
      entityType - entityTypeName for the current entity that is under concern
  • Method Details

    • getEntityType

      public String getEntityType()