Class ContentTypeNotSupportedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.odata2services.converter.ContentTypeNotSupportedException
All Implemented Interfaces:
Serializable

public class ContentTypeNotSupportedException extends RuntimeException
An exception that occurs when the incoming HttpServletRequest content type is not supported by the ODataRequest.
See Also:
  • Constructor Details

    • ContentTypeNotSupportedException

      public ContentTypeNotSupportedException(String contentType, org.apache.olingo.odata2.api.exception.ODataUnsupportedMediaTypeException cause)
      Constructor to create ContentTypeNotSupportedException
      Parameters:
      contentType - requested contentType
      cause - ODataUnsupportedMediaTypeException thrown when searching for a ContentType
  • Method Details

    • getContentType

      public String getContentType()
      Retrieves the content type that failed to parse.
      Returns:
      String contentType that came in the HttpServletRequest.