org.enhydra.shark.api.internal.instancepersistence
Class PersistenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.enhydra.shark.api.RootException
              extended byorg.enhydra.shark.api.internal.instancepersistence.PersistenceException
All Implemented Interfaces:
java.io.Serializable

public class PersistenceException
extends RootException

Class PersistenceException indicates exceptional condition occurring in persistence layer, ie. failing transaction.

Version:
1.0
Author:
Sasa Bojanic, Nenad Stefanovic, Vladimir Puskas
See Also:
Serialized Form

Constructor Summary
PersistenceException(java.lang.String message)
          Constructs a new exception with the specified detail message.
PersistenceException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
PersistenceException(java.lang.Throwable cause)
          Constructs a new exception with cause for throwable.
 
Methods inherited from class org.enhydra.shark.api.RootException
getCause, initCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceException

public PersistenceException(java.lang.String message)
Constructs a new exception with the specified detail message.

Parameters:
message - the detail message for new PersistenceException.

PersistenceException

public PersistenceException(java.lang.Throwable cause)
Constructs a new exception with cause for throwable. Message is created by super constructor (java.lang.Exception), if cause isn't null - cause.toString().

Parameters:
cause - Throwable which caused this PersistenceException.

PersistenceException

public PersistenceException(java.lang.String message,
                            java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - the detail message for new PersistenceException.
cause - Throwable which caused this PersistenceException.