public class RestException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
private int |
status
http response status code
|
| Constructor and Description |
|---|
RestException(java.lang.String message,
int status)
Creates this instance.
|
RestException(java.lang.String message,
java.lang.Throwable cause,
int status)
Creates this instance.
|
RestException(java.lang.Throwable cause,
int status)
Creates this instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
Gets the status.
|
public RestException(java.lang.String message,
int status)
message - The short description of this exceptionstatus - The http response status codepublic RestException(java.lang.Throwable cause,
int status)
cause - The cause of this exceptionstatus - The http response status codepublic RestException(java.lang.String message,
java.lang.Throwable cause,
int status)
message - The short description of this exceptioncause - The cause of this exceptionstatus - The http response status code