@CompileStatic class CacheException extends RuntimeException
A runtime Cache Exception.
The handler provides a key if it is available. A convention that should be followed in exception messages is to include in the message "key keyValue" e.g. "key 1234" so that keys can be parsed out of exception messages.| Constructor and description |
|---|
CacheException()Constructor for the CacheException object. |
CacheException(String message)Constructor for the CacheException object. |
CacheException(String message, Throwable cause)Constructs a new CacheException with the specified detail message and cause. |
CacheException(Throwable cause)Constructs a new CacheException with the specified cause and a detail message of (cause==null ? |
| Methods inherited from class | Name |
|---|---|
class RuntimeException |
addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait |
Constructor for the CacheException object.
Constructor for the CacheException object.
message - the exception detail messageConstructs a new CacheException with the specified detail message and cause.
Note that the detail message associated with
cause is not automatically incorporated in
this runtime exception's detail message.
message - the detail message (which is saved for later retrieval
by the getMessage() method).cause - the cause (which is saved for later retrieval by the
getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)Constructs a new CacheException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables. *
cause - the cause (which is saved for later retrieval by the
getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)