public class PersistenceException extends Exception
PersistenceException
is thrown when there is a
persistance exception. This exception this will be thrown from the
Persister
should serialization or deserialization
of an object fail. Error messages provided to this exception are
formatted similar to the PrintStream.printf
method.Constructor and Description |
---|
PersistenceException(String text,
Object... list)
Constructor for the
PersistenceException object. |
PersistenceException(Throwable cause,
String text,
Object... list)
Constructor for the
PersistenceException object. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PersistenceException(String text, Object... list)
PersistenceException
object.
This constructor takes a format string an a variable number of
object arguments, which can be inserted into the format string.text
- a format string used to present the error messagelist
- a list of arguments to insert into the stringpublic PersistenceException(Throwable cause, String text, Object... list)
PersistenceException
object.
This constructor takes a format string an a variable number of
object arguments, which can be inserted into the format string.cause
- the source exception this is used to representtext
- a format string used to present the error messagelist
- a list of arguments to insert into the string