Serializable
public class NotAcceptableException extends ClientErrorException
not acceptable
by the server.Constructor | Description |
---|---|
NotAcceptableException() |
Construct a new "request not acceptable" exception.
|
NotAcceptableException(String message) |
Construct a new "request not acceptable" exception.
|
NotAcceptableException(String message,
Throwable cause) |
Construct a new "request not acceptable" exception.
|
NotAcceptableException(String message,
Response response) |
Construct a new "request not acceptable" exception.
|
NotAcceptableException(String message,
Response response,
Throwable cause) |
Construct a new "request not acceptable" exception.
|
NotAcceptableException(Throwable cause) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
getResponse
public NotAcceptableException()
public NotAcceptableException(String message)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).public NotAcceptableException(Response response)
response
- error response.IllegalArgumentException
- in case the status code set in the response
is not HTTP 406
.public NotAcceptableException(String message, Response response)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).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(String message, Throwable cause)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).cause
- the underlying cause of the exception.public NotAcceptableException(Response response, Throwable cause)
response
- error response.cause
- the underlying cause of the exception.IllegalArgumentException
- in case the status code set in the response
is not HTTP 406
.public NotAcceptableException(String message, Response response, Throwable cause)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).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 (c) 2019 Eclipse Foundation. Licensed under Eclipse Foundation Specification License.