Class OData2ServicesException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchLimitExceededException, FilterProcessingException, IncorrectQueryParametersException, IntegrationObjectItemNotFoundException, InternalProcessingException, InvalidDataException, InvalidLookupDataException, InvalidODataSchemaException, InvalidPropertyValueException, InvalidServiceNameException, LanguageNotSupportedException, MissingDataException, ODataWebException, OrderByIntegrationKeyNotSupportedException, OrderByNestedAttributeNotSupportedException, RuntimeIOException

public abstract class OData2ServicesException extends org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
This exception is intended to be extended in order to set a custom error message that can be displayed to the user. We should never call any of these constructors without providing a custom exception message that prevents secure data from being exposed in the response.
See Also:
  • Constructor Details

    • OData2ServicesException

      protected OData2ServicesException(String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, String errorCode)
      Constructor to create OData2ServicesException
      Parameters:
      message - error message for the response
      status - response status errorCode
      errorCode - error code
    • OData2ServicesException

      protected OData2ServicesException(String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, String errorCode, Throwable e)
      Constructor to create OData2ServicesException
      Parameters:
      message - error message for the response
      status - response status code
      errorCode - error code
      e - exception that was thrown