org.dasein.persist
Class PersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dasein.persist.PersistenceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataIntegrityException

public class PersistenceException
extends Exception

Represents an error accessing some sort of data store. This class generally encapsulates an underlying data source exception explaining the true nature of the error.
Last modified $Date: 2005/06/09 17:44:57 $

Version:
$Revision: 1.1 $
Author:
George Reese
See Also:
Serialized Form

Constructor Summary
PersistenceException()
          Constructs a new persistence exception that appears to have happened for new good readon whatsoever.
PersistenceException(Exception cse)
          Constructs a new persistence exception that results from the specified data store exception.
PersistenceException(String msg)
          Constructs a new persistence exception with the specified explanation.
 
Method Summary
 Exception getRootCause()
           
 
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

PersistenceException

public PersistenceException()
Constructs a new persistence exception that appears to have happened for new good readon whatsoever.


PersistenceException

public PersistenceException(String msg)
Constructs a new persistence exception with the specified explanation.

Parameters:
msg - the explanation for the error

PersistenceException

public PersistenceException(Exception cse)
Constructs a new persistence exception that results from the specified data store exception.

Parameters:
cse - the cause for this persistence exception
Method Detail

getRootCause

public Exception getRootCause()
Returns:
the cause of this exception