|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.restlet.resource.ResourceException
public class ResourceException
Encapsulates a response status and the optional cause as a checked exception.
| Constructor Summary | |
|---|---|
ResourceException(int code)
Constructor. |
|
ResourceException(int code,
String name,
String description,
String uri)
Constructor. |
|
ResourceException(int code,
String name,
String description,
String uri,
Throwable cause)
Constructor. |
|
ResourceException(int code,
Throwable cause)
Constructor. |
|
ResourceException(Status status)
Constructor. |
|
ResourceException(Status status,
String description)
Constructor. |
|
ResourceException(Status status,
String description,
Throwable cause)
Constructor. |
|
ResourceException(Status status,
Throwable cause)
Constructor. |
|
ResourceException(Throwable cause)
Constructor that set the status to Status.SERVER_ERROR_INTERNAL including the
related error or exception. |
|
| Method Summary | |
|---|---|
Status |
getStatus()
Returns the status associated to this exception. |
String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceException(int code)
code - The specification code 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 name,
String description,
String uri,
Throwable cause)
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.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(Status status)
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(Throwable cause)
Status.SERVER_ERROR_INTERNAL including the
related error or exception.
cause - The wrapped cause error or exception.| Method Detail |
|---|
public Status getStatus()
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||