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
public class ODataUnsupportedMediaTypeException extends ODataHttpException
Exceptions of this class will result in a HTTP status 415 unsupported media type- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static MessageReferenceNOT_SUPPORTEDNOT_SUPPORTED requires 1 content value ('media type')static MessageReferenceNOT_SUPPORTED_ACCEPT_HEADERNOT_SUPPORTED_ACCEPT_HEADER requires 1 content value ('media type')static MessageReferenceNOT_SUPPORTED_CONTENT_TYPENOT_SUPPORTED_CONTENT_TYPE requires 1 content value ('media type')-
Fields inherited from class org.apache.olingo.odata2.api.exception.ODataHttpException
COMMON, httpStatus
-
Fields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
errorCode, messageReference
-
-
Constructor Summary
Constructors Constructor Description ODataUnsupportedMediaTypeException(MessageReference context)ODataUnsupportedMediaTypeException(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
getHttpStatus
-
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
createMessageReference, getErrorCode, getMessage, getMessageReference
-
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataException
getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
NOT_SUPPORTED
public static final MessageReference NOT_SUPPORTED
NOT_SUPPORTED requires 1 content value ('media type')
-
NOT_SUPPORTED_CONTENT_TYPE
public static final MessageReference NOT_SUPPORTED_CONTENT_TYPE
NOT_SUPPORTED_CONTENT_TYPE requires 1 content value ('media type')
-
NOT_SUPPORTED_ACCEPT_HEADER
public static final MessageReference NOT_SUPPORTED_ACCEPT_HEADER
NOT_SUPPORTED_ACCEPT_HEADER requires 1 content value ('media type')
-
-
Constructor Detail
-
ODataUnsupportedMediaTypeException
public ODataUnsupportedMediaTypeException(MessageReference context)
-
ODataUnsupportedMediaTypeException
public ODataUnsupportedMediaTypeException(MessageReference context, Throwable cause)
-
ODataUnsupportedMediaTypeException
public ODataUnsupportedMediaTypeException(MessageReference context, String errorCode)
-
ODataUnsupportedMediaTypeException
public ODataUnsupportedMediaTypeException(MessageReference context, Throwable cause, String errorCode)
-
-