public class RResourceException
extends org.restlet.resource.ResourceException
ResourceException
, but with additional variant to go in the message body,
as specified in OpenTox error reports.Modifier and Type | Field and Description |
---|---|
protected org.restlet.representation.Variant |
variant |
Constructor and Description |
---|
RResourceException(int code,
String name,
String description,
String uri,
Throwable cause,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(int code,
String name,
String description,
String uri,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(int code,
Throwable cause,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(int code,
org.restlet.representation.Variant variant) |
RResourceException(org.restlet.data.Status status,
String description,
Throwable cause,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(org.restlet.data.Status status,
String description,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(org.restlet.data.Status status,
Throwable cause,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(org.restlet.data.Status status,
org.restlet.representation.Variant variant)
Constructor.
|
RResourceException(Throwable cause,
org.restlet.representation.Variant variant)
Constructor that set the status to
Status.SERVER_ERROR_INTERNAL including the
related error or exception. |
Modifier and Type | Method and Description |
---|---|
org.restlet.representation.Representation |
getRepresentation() |
org.restlet.representation.Variant |
getVariant() |
void |
setVariant(org.restlet.representation.Variant variant)
The variant
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public RResourceException(int code, org.restlet.representation.Variant variant)
public RResourceException(int code, String name, String description, String uri, org.restlet.representation.Variant variant)
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 RResourceException(int code, String name, String description, String uri, Throwable cause, org.restlet.representation.Variant variant)
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 RResourceException(int code, Throwable cause, org.restlet.representation.Variant variant)
code
- The specification code of the encapsulated status.cause
- The wrapped cause error or exception.public RResourceException(org.restlet.data.Status status, org.restlet.representation.Variant variant)
status
- The status to associate.public RResourceException(org.restlet.data.Status status, String description, org.restlet.representation.Variant variant)
status
- The status to copy.description
- The description of the encapsulated status.public RResourceException(org.restlet.data.Status status, String description, Throwable cause, org.restlet.representation.Variant variant)
status
- The status to copy.description
- The description of the encapsulated status.cause
- The wrapped cause error or exception.public RResourceException(org.restlet.data.Status status, Throwable cause, org.restlet.representation.Variant variant)
status
- The status to associate.cause
- The wrapped cause error or exception.public RResourceException(Throwable cause, org.restlet.representation.Variant variant)
Status.SERVER_ERROR_INTERNAL
including the
related error or exception.cause
- The wrapped cause error or exception.Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.