Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.persistence
Class PersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.mtj.core.persistence.PersistenceException
All Implemented Interfaces:
Serializable

public class PersistenceException
extends Exception

PersistenceException class wraps any exception that may be thrown during the persistence of any class implementing the IPersistable interface.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
PersistenceException()
          Create a PersistenceException instance without any message or Throwable cause.
PersistenceException(String message)
          Creates a PersistenceException with the specified error message.
PersistenceException(String message, Throwable cause)
          Creates a PersistenceException with the specified error message and the specified exception as the root cause.
PersistenceException(Throwable cause)
          Creates a PersistenceException with the specified exception as the root cause.
 
Method Summary
 
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()
Create a PersistenceException instance without any message or Throwable cause.


PersistenceException

public PersistenceException(String message)
Creates a PersistenceException with the specified error message.

Parameters:
message - error message.

PersistenceException

public PersistenceException(String message,
                            Throwable cause)
Creates a PersistenceException with the specified error message and the specified exception as the root cause.

Parameters:
message - error message.
cause - error cause.

PersistenceException

public PersistenceException(Throwable cause)
Creates a PersistenceException with the specified exception as the root cause.

Parameters:
cause - error cause.

Mobile Tools for Java
Release 1.0