net.sf.ehcache

Class CacheException

public class CacheException extends 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 CacheException 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

Constructor Summary
CacheException()
Constructor for the CacheException object.
CacheException(String message)
Constructor for the CacheException object.
CacheException(String message, Throwable initialCause)
Constructor for the CacheException object.
Method Summary
ThrowablegetInitialCause()
The intiial cause of this Exception.

Constructor Detail

CacheException

public CacheException()
Constructor for the CacheException object.

CacheException

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

Parameters: message the exception detail message

CacheException

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

Parameters: message the exception detail message initialCause the cause of the exception

Method Detail

getInitialCause

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

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