Class HttpMediaTypeNotAcceptableException

All Implemented Interfaces:
Serializable

public class HttpMediaTypeNotAcceptableException extends HttpMediaTypeException
Exception thrown when the request handler cannot generate a response that is acceptable by the client.
Since:
3.0
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • HttpMediaTypeNotAcceptableException

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

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