org.springframework.web
Class HttpMediaTypeNotAcceptableException

java.lang.Object
  extended by ServletException
      extended by org.springframework.web.HttpMediaTypeException
          extended by org.springframework.web.HttpMediaTypeNotAcceptableException

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

Constructor Summary
HttpMediaTypeNotAcceptableException(java.util.List<MediaType> supportedMediaTypes)
          Create a new HttpMediaTypeNotSupportedException.
HttpMediaTypeNotAcceptableException(java.lang.String message)
          Create a new HttpMediaTypeNotAcceptableException.
 
Method Summary
 
Methods inherited from class org.springframework.web.HttpMediaTypeException
getSupportedMediaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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