public class ResourceException extends RuntimeException
Constructor and Description |
---|
ResourceException(int code)
Constructor.
|
ResourceException(int code,
String reasonPhrase)
Constructor.
|
ResourceException(int code,
String reasonPhrase,
String description)
Constructor.
|
ResourceException(int code,
String name,
String description,
String uri)
Constructor.
|
ResourceException(int code,
String reasonPhrase,
String description,
String uri,
Throwable cause)
Constructor.
|
ResourceException(int code,
Throwable cause)
Constructor.
|
ResourceException(int code,
Throwable throwable,
String reasonPhrase)
Constructor.
|
ResourceException(int code,
Throwable throwable,
String reasonPhrase,
String description)
Constructor.
|
ResourceException(int code,
Throwable throwable,
String reasonPhrase,
String description,
String uri)
Constructor.
|
ResourceException(Status status)
Constructor.
|
ResourceException(Status status,
Resource resource)
Constructor.
|
ResourceException(Status status,
String description)
Constructor.
|
ResourceException(Status status,
String description,
Throwable cause)
Constructor.
|
ResourceException(Status status,
Throwable cause)
Constructor.
|
ResourceException(Status status,
Throwable cause,
Resource resource)
Constructor.
|
ResourceException(Throwable cause)
Constructor that set the status to
Status.SERVER_ERROR_INTERNAL including the
related error or exception. |
Modifier and Type | Method and Description |
---|---|
Request |
getRequest()
Returns the request associated to this exception.
|
Resource |
getResource()
Returns the resource associated to this exception.
|
Response |
getResponse()
Returns the response associated to this exception.
|
Status |
getStatus()
Returns the status associated to this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceException(int code)
code
- The specification code of the encapsulated status.public ResourceException(int code, String reasonPhrase)
code
- The specification code of the encapsulated status.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.public ResourceException(int code, String reasonPhrase, String description)
code
- The specification code of the encapsulated status.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.description
- The description of the encapsulated status.public ResourceException(int code, String name, String description, String uri)
code
- The specification code of the encapsulated status.name
- The name of the encapsulated status.description
- The description of the encapsulated status.uri
- The URI of the specification describing the method.public ResourceException(int code, String reasonPhrase, String description, String uri, Throwable cause)
code
- The specification code of the encapsulated status.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.description
- The description of the encapsulated status.uri
- The URI of the specification describing the method.cause
- The wrapped cause error or exception.public ResourceException(int code, Throwable cause)
code
- The specification code of the encapsulated status.cause
- The wrapped cause error or exception.public ResourceException(int code, Throwable throwable, String reasonPhrase)
code
- The specification code.throwable
- The related error or exception.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.public ResourceException(int code, Throwable throwable, String reasonPhrase, String description)
code
- The specification code.throwable
- The related error or exception.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.description
- The longer description.public ResourceException(int code, Throwable throwable, String reasonPhrase, String description, String uri)
code
- The specification code.throwable
- The related error or exception.reasonPhrase
- The short reason phrase displayed next to the status code in a
HTTP response.description
- The longer description.uri
- The URI of the specification describing the method.public ResourceException(Status status)
status
- The status to associate.public ResourceException(Status status, Resource resource)
status
- The status to associate.public ResourceException(Status status, String description)
status
- The status to copy.description
- The description of the encapsulated status.public ResourceException(Status status, String description, Throwable cause)
status
- The status to copy.description
- The description of the encapsulated status.cause
- The wrapped cause error or exception.public ResourceException(Status status, Throwable cause)
status
- The status to associate.cause
- The wrapped cause error or exception.public ResourceException(Status status, Throwable cause, Resource resource)
status
- The status to associate.cause
- The wrapped cause error or exception.public ResourceException(Throwable cause)
Status.SERVER_ERROR_INTERNAL
including the
related error or exception.cause
- The wrapped cause error or exception.public Request getRequest()
public Resource getResource()
public Response getResponse()
public Status getStatus()
Copyright © 2005-2015 Restlet.