com.planet_ink.coffee_mud.core.intermud.persist
Class PersistenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.planet_ink.coffee_mud.core.intermud.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
|
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. |
| 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
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 exceptione - the exception causing this exception to be created
getPriorException
public java.lang.Exception getPriorException()
- Returns:
- the exception which caused this one to be created
getExceptionChain
public java.util.Enumeration getExceptionChain()
- Returns:
- the full chain of exceptions leading to this one