public class NotAcceptableException extends ClientErrorException
not acceptable
by the server.Constructor and Description |
---|
NotAcceptableException()
Construct a new "request not acceptable" exception.
|
NotAcceptableException(Response response)
Construct a new "request not acceptable" exception.
|
NotAcceptableException(Response response,
Throwable cause)
Construct a new "request not acceptable" exception.
|
NotAcceptableException(Throwable cause)
Construct a new "request not acceptable" exception.
|
getResponse
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NotAcceptableException()
public NotAcceptableException(Response response) throws IllegalArgumentException
response
- error response.IllegalArgumentException
- in case the status code set in the response
is not HTTP 406
.public NotAcceptableException(Throwable cause)
cause
- the underlying cause of the exception.public NotAcceptableException(Response response, Throwable cause) throws IllegalArgumentException
response
- error response.cause
- the underlying cause of the exception.IllegalArgumentException
- in case the status code set in the response
is not HTTP 406
.Copyright © 2013. All Rights Reserved.