Top Description Fields Constructors Methods
javax.ws.rs

public Class ClientErrorException

extends WebApplicationException
Class Inheritance
Known Direct Subclasses
javax.ws.rs.ForbiddenException, javax.ws.rs.NotAcceptableException, javax.ws.rs.NotAllowedException, javax.ws.rs.NotAuthorizedException, javax.ws.rs.NotFoundException, javax.ws.rs.NotSupportedException, javax.ws.rs.BadRequestException
Imports
javax.ws.rs.core.Response

A base runtime application exception indicating a client request error (HTTP 4xx status codes).
Author
Marek Potociar
Since
2.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ClientErrorException(Response.Status
client error status. Must be a 4xx status code.
status
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Response.Status
client error status. Must be a 4xx status code.
status
)

Construct a new client error exception.

public
ClientErrorException(int
client error status. Must be a 4xx status code.
status
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
int
client error status. Must be a 4xx status code.
status
)

Construct a new client error exception.

public
ClientErrorException(Response
client error response. Must have a status code set to a 4xx status code.
response
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Response
client error response. Must have a status code set to a 4xx status code.
response
)

Construct a new client error exception.

public
ClientErrorException(Response.Status
client error status. Must be a 4xx status code.
status
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Response.Status
client error status. Must be a 4xx status code.
status
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

public
ClientErrorException(int
client error status. Must be a 4xx status code.
status
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
int
client error status. Must be a 4xx status code.
status
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

public
ClientErrorException(Response
client error response. Must have a status code set to a 4xx status code.
response
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

public
ClientErrorException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Response
client error response. Must have a status code set to a 4xx status code.
response
,
Throwable
the underlying cause of the exception.
cause
)

Construct a new client error exception.

Method Summary

Inherited from javax.ws.rs.WebApplicationException:
getResponsevalidatevalidate

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.ws.rs.WebApplicationException.serialVersionUID.

Constructor Detail

ClientErrorExceptionback to summary
public ClientErrorException(Response.Status status)

Construct a new client error exception.

Parameters
status:Response.Status

client error status. Must be a 4xx status code.

Exceptions
IllegalArgumentException:
in case the status code is null or is not from javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, Response.Status status)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

status:Response.Status

client error status. Must be a 4xx status code.

Exceptions
IllegalArgumentException:
in case the status code is null or is not from javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(int status)

Construct a new client error exception.

Parameters
status:int

client error status. Must be a 4xx status code.

Exceptions
IllegalArgumentException:
in case the status code is not a valid HTTP status code or if it is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, int status)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

status:int

client error status. Must be a 4xx status code.

Exceptions
IllegalArgumentException:
in case the status code is not a valid HTTP status code or if it is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(Response response)

Construct a new client error exception.

Parameters
response:Response

client error response. Must have a status code set to a 4xx status code.

Exceptions
IllegalArgumentException:
in case the response status code is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, Response response)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

response:Response

client error response. Must have a status code set to a 4xx status code.

Exceptions
IllegalArgumentException:
in case the response status code is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(Response.Status status, Throwable cause)

Construct a new client error exception.

Parameters
status:Response.Status

client error status. Must be a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code is null or is not from javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, Response.Status status, Throwable cause)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

status:Response.Status

client error status. Must be a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code is null or is not from javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(int status, Throwable cause)

Construct a new client error exception.

Parameters
status:int

client error status. Must be a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code is not a valid HTTP status code or if it is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, int status, Throwable cause)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

status:int

client error status. Must be a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the status code is not a valid HTTP status code or if it is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(Response response, Throwable cause)

Construct a new client error exception.

Parameters
response:Response

client error response. Must have a status code set to a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the response status code is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.
ClientErrorExceptionback to summary
public ClientErrorException(String message, Response response, Throwable cause)

Construct a new client error exception.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

response:Response

client error response. Must have a status code set to a 4xx status code.

cause:Throwable

the underlying cause of the exception.

Exceptions
IllegalArgumentException:
in case the response status code is not from the javax.ws.rs.core.Response.Status.Family#CLIENT_ERROR status code family.