ehcache

net.sf.ehcache
Class CacheException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynet.sf.ehcache.CacheException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ObjectExistsException, RemoteCacheException

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 52 2006-04-24 14:50:03Z 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
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

true