Top Description Constructors Methods
net.sf.ehcache.writer

public Class CacheWriterManagerException

extends CacheException
Class Inheritance
Known Direct Subclasses
net.sf.ehcache.store.disk.StoreUpdateException
Imports
net.sf.ehcache.CacheException

An exception specifically for throwing exceptions that happen with a CacheWriterManager implementation.
Author
Geert Bevin
Version
$Id: CacheWriterManagerException.java 5594 2012-05-07 16:04:31Z cdennis $

Constructor Summary

AccessConstructor and Description
public
CacheWriterManagerException(RuntimeException
the underlying cause for this exception
cause
)

Construct a new exception

Method Summary

Modifier and TypeMethod and Description
public RuntimeException
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Constructor Detail

CacheWriterManagerExceptionback to summary
public CacheWriterManagerException(RuntimeException cause)

Construct a new exception

Parameters
cause:RuntimeException

the underlying cause for this exception

Method Detail

getCauseback to summary
public RuntimeException getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:RuntimeException

the cause of this throwable or null if the cause is nonexistent or unknown.

Annotations
@Override