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:
java.io.Serializable
- Direct Known Subclasses:
BatchLimitExceededException,FilterProcessingException,IncorrectQueryParametersException,IntegrationObjectItemNotFoundException,InternalProcessingException,InvalidDataException,InvalidLookupDataException,InvalidODataSchemaException,InvalidPropertyValueException,InvalidServiceNameException,LanguageNotSupportedException,MissingDataException,ODataWebException,RuntimeIOException
public abstract class OData2ServicesException extends org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationExceptionThis 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status)Constructor to create OData2ServicesExceptionOData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, java.lang.String errorCode)Constructor to create OData2ServicesExceptionOData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, java.lang.String errorCode, java.lang.Throwable e)Constructor to create OData2ServicesException
-
Method Summary
-
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException
getCode, getHttpStatus, getLocale
-
-
-
-
Constructor Detail
-
OData2ServicesException
public OData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status)Constructor to create OData2ServicesException- Parameters:
message- error message for the responsestatus- response status code
-
OData2ServicesException
public OData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, java.lang.String errorCode)Constructor to create OData2ServicesException- Parameters:
message- error message for the responsestatus- response status codeerrorCode- error code
-
OData2ServicesException
public OData2ServicesException(java.lang.String message, org.apache.olingo.odata2.api.commons.HttpStatusCodes status, java.lang.String errorCode, java.lang.Throwable e)Constructor to create OData2ServicesException- Parameters:
message- error message for the responsestatus- response status codeerrorCode- error codee- exception that was thrown
-
-