Class MissingDataException

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.persistence.MissingDataException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MissingKeyNavigationPropertyException, MissingKeyPropertyException, MissingNavigationPropertyException, MissingPropertyException

public abstract class MissingDataException extends OData2ServicesException
Exception to thrown when a required property or navigationProperty is not supplied in the request. Will result in HttpStatus 400
See Also:
  • Constructor Details

    • MissingDataException

      protected MissingDataException(String message, String errorCode, String propertyName, String entityType)
      Constructor to create MissingDataException
      Parameters:
      message - error message
      errorCode - error code
      propertyName - name of the property or navigationProperty
      entityType - EdmEntityType name
  • Method Details

    • getEntityType

      public String getEntityType()
    • getPropertyName

      public String getPropertyName()