ehcache

net.sf.ehcache
Class CacheException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.ehcache.CacheException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlreadyGzippedException, FilterNonReentrantException, LockTimeoutException, ObjectExistsException, RemoteCacheException, ResponseHeadersNotModifiableException

public class CacheException
extends java.lang.RuntimeException

A runtime Cache Exception, compatible with JDK1.3.

Because JDK1.3 does not support chained exceptions or intial cause, this class has its own initialCause field and getInitialCause() accessor, to aid with debugging. The JDK1.4 initial cause mechanism is not used or populated.

Version:
$Id: CacheException.java 124 2006-06-11 13:44:17Z gregluck $
Author:
Greg Luck
See Also:
Serialized Form

Constructor Summary
CacheException()
          Constructor for the CacheException object.
CacheException(java.lang.String message)
          Constructor for the CacheException object.
CacheException(java.lang.String message, java.lang.Throwable initialCause)
          Constructor for the CacheException object.
 
Method Summary
 java.lang.Throwable getInitialCause()
          The intiial cause of this Exception.
 
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

CacheException

public CacheException()
Constructor for the CacheException object.


CacheException

public CacheException(java.lang.String message)
Constructor for the CacheException object.

Parameters:
message - the exception detail message

CacheException

public CacheException(java.lang.String message,
                      java.lang.Throwable initialCause)
Constructor for the CacheException object.

Parameters:
message - the exception detail message
initialCause - the cause of the exception which can later be retrieved with the getInitialCause() method
Method Detail

getInitialCause

public final java.lang.Throwable getInitialCause()
The intiial cause of this Exception.

Returns:
the cause or null if this exception has no deeper cause.

ehcache