com.planet_ink.coffee_mud.core.intermud.i3.persist
Class PersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.planet_ink.coffee_mud.core.intermud.i3.persist.PersistenceException
All Implemented Interfaces:
java.io.Serializable

public class PersistenceException
extends java.lang.Exception

An exception that gets thrown on persistence operations. If it was triggered by a specific exception, that exception will be added to the exception chain so any class catching this exception can get detailed information on what went wrong.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
PersistenceException()
           
PersistenceException(java.lang.Exception e)
          Constructs a new PersistenceException that occured because another exception was encountered during a persistence operation such as a save or restore.
PersistenceException(java.lang.String reason)
          Constructs a new PersistenceException with the specified exception explanation.
PersistenceException(java.lang.String reason, java.lang.Exception e)
          Constructs a new PersistenceException based on a previous exception during a persistence operation with the specified exception explanation.
 
Method Summary
 java.util.Enumeration<java.lang.Exception> getExceptionChain()
           
 java.lang.Exception getPriorException()
           
 
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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PersistenceException

public PersistenceException()

PersistenceException

public PersistenceException(java.lang.String reason)
Constructs a new PersistenceException with the specified exception explanation.

Parameters:
reason - the reason for the exception

PersistenceException

public PersistenceException(java.lang.Exception e)
Constructs a new PersistenceException that occured because another exception was encountered during a persistence operation such as a save or restore.

Parameters:
e - the exception causing this exception to be created

PersistenceException

public PersistenceException(java.lang.String reason,
                            java.lang.Exception e)
Constructs a new PersistenceException based on a previous exception during a persistence operation with the specified exception explanation.

Parameters:
reason - the explanation for the exception
e - the exception causing this exception to be created
Method Detail

getPriorException

public java.lang.Exception getPriorException()
Returns:
the exception which caused this one to be created

getExceptionChain

public java.util.Enumeration<java.lang.Exception> getExceptionChain()
Returns:
the full chain of exceptions leading to this one