Class ODataUnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.api.exception.ODataMessageException
org.apache.olingo.odata2.api.exception.ODataHttpException
org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
Exceptions of this class will result in a HTTP status 415 unsupported media type
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageReferenceNOT_SUPPORTED requires 1 content value ('media type')static final MessageReferenceNOT_SUPPORTED_ACCEPT_HEADER requires 1 content value ('media type')static final MessageReferenceNOT_SUPPORTED_CONTENT_TYPE requires 1 content value ('media type')Fields inherited from class org.apache.olingo.odata2.api.exception.ODataHttpException
COMMON, httpStatusFields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
errorCode, messageReference -
Constructor Summary
ConstructorsConstructorDescriptionODataUnsupportedMediaTypeException(MessageReference context, String errorCode) ODataUnsupportedMediaTypeException(MessageReference context, Throwable cause) ODataUnsupportedMediaTypeException(MessageReference context, Throwable cause, String errorCode) -
Method Summary
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataHttpException
getHttpStatusMethods inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
createMessageReference, getErrorCode, getMessage, getMessageReferenceMethods inherited from class org.apache.olingo.odata2.api.exception.ODataException
getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
NOT_SUPPORTED
NOT_SUPPORTED requires 1 content value ('media type') -
NOT_SUPPORTED_CONTENT_TYPE
NOT_SUPPORTED_CONTENT_TYPE requires 1 content value ('media type') -
NOT_SUPPORTED_ACCEPT_HEADER
NOT_SUPPORTED_ACCEPT_HEADER requires 1 content value ('media type')
-
-
Constructor Details
-
ODataUnsupportedMediaTypeException
-
ODataUnsupportedMediaTypeException
-
ODataUnsupportedMediaTypeException
-
ODataUnsupportedMediaTypeException
public ODataUnsupportedMediaTypeException(MessageReference context, Throwable cause, String errorCode)
-