Package com.adobe.granite.rest
Class RestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.adobe.granite.rest.RestException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RequestException,ResourceConverterException
The RestException is the base exception used throughout the API. This
exception should only be thrown if there is no more specific exception
defined in the API for the cause otherwise a more specific exception must be
used.
The RestException is a RuntimeException because it is not intended to be caught by client code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRestException(String message) Creates a RestExceptionRestException(String message, Throwable cause) Creates a RestExceptionRestException(Throwable cause) Creates a RestException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestException
Creates a RestException- Parameters:
message- the detail message
-
RestException
Creates a RestException- Parameters:
cause- the cause
-
RestException
Creates a RestException- Parameters:
message- the detail messagecause- the cause
-