public class ResourceException
extends java.lang.RuntimeException
Constructor and Description |
---|
ResourceException(int code)
Constructor.
|
ResourceException(int code,
java.lang.String name,
java.lang.String description,
java.lang.String uri)
Constructor.
|
ResourceException(int code,
java.lang.String name,
java.lang.String description,
java.lang.String uri,
java.lang.Throwable cause)
Constructor.
|
ResourceException(int code,
java.lang.Throwable cause)
Constructor.
|
ResourceException(Status status)
Constructor.
|
ResourceException(Status status,
java.lang.String description)
Constructor.
|
ResourceException(Status status,
java.lang.String description,
java.lang.Throwable cause)
Constructor.
|
ResourceException(Status status,
java.lang.Throwable cause)
Constructor.
|
ResourceException(java.lang.Throwable cause)
Constructor that set the status to
Status.SERVER_ERROR_INTERNAL including the
related error or exception. |
Modifier and Type | Method and Description |
---|---|
Status |
getStatus()
Returns the status associated to this exception.
|
java.lang.String |
toString() |
public ResourceException(int code)
code
- The specification code of the encapsulated status.public ResourceException(int code, java.lang.String name, java.lang.String description, java.lang.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, java.lang.String name, java.lang.String description, java.lang.String uri, java.lang.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, java.lang.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, java.lang.String description)
status
- The status to copy.description
- The description of the encapsulated status.public ResourceException(Status status, java.lang.String description, java.lang.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, java.lang.Throwable cause)
status
- The status to associate.cause
- The wrapped cause error or exception.public ResourceException(java.lang.Throwable cause)
Status.SERVER_ERROR_INTERNAL
including the
related error or exception.cause
- The wrapped cause error or exception.public Status getStatus()
public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright © 2005-2012. All Rights Reserved.