org.enhydra.shark.api.internal.instancepersistence
Class PersistenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.enhydra.shark.api.RootException
org.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 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 |
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.