Class ContentTypeNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.odata2services.converter.ContentTypeNotSupportedException
- All Implemented Interfaces:
Serializable
An exception that occurs when the incoming HttpServletRequest content type is not supported by the ODataRequest.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentTypeNotSupportedException(String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause) Constructor to create ContentTypeNotSupportedException -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the content type that failed to parse.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContentTypeNotSupportedException
public ContentTypeNotSupportedException(String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause) Constructor to create ContentTypeNotSupportedException- Parameters:
contentType- requested contentTypecause-ODataUnsupportedMediaTypeExceptionthrown when searching for aContentType
-
-
Method Details
-
getContentType
Retrieves the content type that failed to parse.- Returns:
- String contentType that came in the HttpServletRequest.
-