Package com.aspectran.web.support.http
Class HttpMediaTypeNotAcceptableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.servlet.ServletException
-
- com.aspectran.web.support.http.HttpMediaTypeException
-
- com.aspectran.web.support.http.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
-
-
Constructor Summary
Constructors Constructor Description HttpMediaTypeNotAcceptableException(java.lang.String message)
Create a new HttpMediaTypeNotAcceptableException.HttpMediaTypeNotAcceptableException(java.util.List<MediaType> supportedMediaTypes)
Create a new HttpMediaTypeNotSupportedException.
-
Method Summary
-
Methods inherited from class com.aspectran.web.support.http.HttpMediaTypeException
getSupportedMediaTypes
-
-
-
-
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
-
-