public class

HttpMediaTypeNotAcceptableException

extends HttpMediaTypeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.servlet.ServletException
         ↳ org.springframework.web.HttpMediaTypeException
           ↳ org.springframework.web.HttpMediaTypeNotAcceptableException

Class Overview

Exception thrown when the request handler cannot generate a response that is acceptable by the client.

Summary

Public Constructors
HttpMediaTypeNotAcceptableException(String message)
Create a new HttpMediaTypeNotAcceptableException.
HttpMediaTypeNotAcceptableException(List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.
[Expand]
Inherited Methods
From class org.springframework.web.HttpMediaTypeException
From class javax.servlet.ServletException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public HttpMediaTypeNotAcceptableException (String message)

Create a new HttpMediaTypeNotAcceptableException.

Parameters
message the exception message

public HttpMediaTypeNotAcceptableException (List<MediaType> supportedMediaTypes)

Create a new HttpMediaTypeNotSupportedException.

Parameters
supportedMediaTypes the list of supported media types