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:
java.io.Serializable
- Direct Known Subclasses:
RequestException
,ResourceConverterException
public class RestException extends java.lang.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(java.lang.String message)
Creates a RestExceptionRestException(java.lang.String message, java.lang.Throwable cause)
Creates a RestExceptionRestException(java.lang.Throwable cause)
Creates a RestException
-
-
-
Constructor Detail
-
RestException
public RestException(java.lang.String message)
Creates a RestException- Parameters:
message
- the detail message
-
RestException
public RestException(java.lang.Throwable cause)
Creates a RestException- Parameters:
cause
- the cause
-
RestException
public RestException(java.lang.String message, java.lang.Throwable cause)
Creates a RestException- Parameters:
message
- the detail messagecause
- the cause
-
-