@groovy.transform.CompileStatic class CacheException extends java.lang.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
(java.lang.String message) Constructor for the CacheException object. |
CacheException
(java.lang.String message, java.lang.Throwable cause) Constructs a new CacheException with the specified detail message and cause. |
CacheException
(java.lang.Throwable cause) Constructs a new CacheException with the specified cause and a detail message of (cause==null ? |
Methods inherited from class | Name |
---|---|
class java.lang.RuntimeException |
java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#wait(), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll() |
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.)