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
public class RestException extends RuntimeException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(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
-
-