Class ContentTypeNotSupportedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.hybris.platform.odata2services.converter.ContentTypeNotSupportedException
-
- All Implemented Interfaces:
java.io.Serializable
public class ContentTypeNotSupportedException extends java.lang.RuntimeExceptionAn exception that occurs when the incoming HttpServletRequest content type is not supported by the ODataRequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentTypeNotSupportedException(java.lang.String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause)Constructor to create ContentTypeNotSupportedException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Retrieves the content type that failed to parse.
-
-
-
Constructor Detail
-
ContentTypeNotSupportedException
public ContentTypeNotSupportedException(java.lang.String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause)Constructor to create ContentTypeNotSupportedException- Parameters:
contentType- requested contentTypecause-ODataUnsupportedMediaTypeExceptionthrown when searching for aContentType
-
-