public class ForbiddenException extends ClientErrorException
forbidden
by the server.Constructor and Description |
---|
ForbiddenException()
Construct a new "forbidden" exception.
|
ForbiddenException(Response response)
Construct a new "forbidden" exception.
|
ForbiddenException(Response response,
java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message,
Response response)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message,
Response response,
java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.String message,
java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
ForbiddenException(java.lang.Throwable cause)
Construct a new "forbidden" exception.
|
getResponse
public ForbiddenException()
public ForbiddenException(java.lang.String message)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).public ForbiddenException(Response response)
response
- error response.java.lang.IllegalArgumentException
- in case the status code set in the response
is not HTTP 403
.public ForbiddenException(java.lang.String message, Response response)
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).response
- error response.java.lang.IllegalArgumentException
- in case the status code set in the response
is not HTTP 403
.public ForbiddenException(java.lang.Throwable cause)
cause
- the underlying cause of the exception.public ForbiddenException(java.lang.String message, java.lang.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 ForbiddenException(Response response, java.lang.Throwable cause)
response
- error response.cause
- the underlying cause of the exception.java.lang.IllegalArgumentException
- in case the status code set in the response
is not HTTP 403
.public ForbiddenException(java.lang.String message, Response response, java.lang.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.java.lang.IllegalArgumentException
- in case the status code set in the response
is not HTTP 403
.