info.sswap.http.rest
Class NotAcceptableMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ws.rs.WebApplicationException
info.sswap.http.rest.NotAcceptableMediaTypeException
- All Implemented Interfaces:
- java.io.Serializable
public class NotAcceptableMediaTypeException
- extends javax.ws.rs.WebApplicationException
An exception generated when an unacceptable media type is requested. The exceptions of this type
generate 406 HTTP code.
- Author:
- Blazej Bulka
- See Also:
- Serialized Form
Field Summary |
private static long |
serialVersionUID
Serial version ID for a Serializable class |
Methods inherited from class javax.ws.rs.WebApplicationException |
getResponse |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Serial version ID for a Serializable class
- See Also:
- Constant Field Values
NotAcceptableMediaTypeException
public NotAcceptableMediaTypeException()
- Creates an exception that will generate a generic "406 Not Acceptable" response
NotAcceptableMediaTypeException
public NotAcceptableMediaTypeException(java.lang.String message)
- Creates an exception that will generate a "406" HTTP response with a specified message (typed text/plain).
- Parameters:
message
- the custom message to be displayed as an error message
NotAcceptableMediaTypeException
public NotAcceptableMediaTypeException(javax.ws.rs.core.MediaType mediaType)
Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.