Class HttpMediaTypeNotAcceptableException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpMediaTypeNotAcceptableException
    extends HttpMediaTypeException

    This class is a clone of org.springframework.web.HttpMediaTypeNotAcceptableException

    Exception thrown when the request handler cannot generate a response that is acceptable by the client.
    Author:
    Arjen Poutsma
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class javax.servlet.ServletException

        getRootCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HttpMediaTypeNotAcceptableException

        public HttpMediaTypeNotAcceptableException​(java.lang.String message)
        Create a new HttpMediaTypeNotAcceptableException.
        Parameters:
        message - the exception message
      • HttpMediaTypeNotAcceptableException

        public HttpMediaTypeNotAcceptableException​(java.util.List<MediaType> supportedMediaTypes)
        Create a new HttpMediaTypeNotSupportedException.
        Parameters:
        supportedMediaTypes - the list of supported media types