|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ehcache.core.exceptions.CachePassThroughException
public class CachePassThroughException
A generic wrapper runtime exception that will not be caught and handled at the store level.
This wrapper can be used to enable any runtime exceptions that you don't want to be caught at the store level to be propagated.
Constructor Summary | |
---|---|
CachePassThroughException(java.lang.String message,
java.lang.Throwable cause)
Creates an exception with the provided message and cause. |
|
CachePassThroughException(java.lang.Throwable cause)
Creates an exception with the provided cause. |
Method Summary | |
---|---|
static void |
handleRuntimeException(java.lang.RuntimeException re)
Helper method for handling runtime exceptions. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CachePassThroughException(java.lang.String message, java.lang.Throwable cause)
message
- information about the exceptioncause
- the cause of this exceptionpublic CachePassThroughException(java.lang.Throwable cause)
cause
- the cause of this exceptionMethod Detail |
---|
public static void handleRuntimeException(java.lang.RuntimeException re) throws CacheAccessException
Throwing most as CacheAccessException
except for CachePassThroughException
.
In which case if its cause is a RuntimeException
it is thrown back and if not it is
wrapped in a CacheAccessException
.
re
- the exception to handler
CacheAccessException
- except for CachePassThroughException
containing a RuntimeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |