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 Summary
ConstructorsModifierConstructorDescriptionprotectedOData2ServicesException(String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, String errorCode) Constructor to create OData2ServicesExceptionprotectedOData2ServicesException(String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, String errorCode, Throwable e) Constructor to create OData2ServicesException -
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
-
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 responsestatus- response status errorCodeerrorCode- 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 responsestatus- response status codeerrorCode- error codee- exception that was thrown
-