01: /* PersistenceException.java */
02:
03: package org.enhydra.shark.api.internal.instancepersistence;
04:
05: import org.enhydra.shark.api.RootException;
06:
07: /**
08: * Class PersistenceException indicates exceptional condition
09: * occurring in persistence layer, ie. failing transaction.
10: *
11: * @author Sasa Bojanic
12: * @author Nenad Stefanovic
13: * @author Vladimir Puskas
14: * @version 1.0
15: */
16: public class PersistenceException extends RootException {
17:
18: /**
19: * Constructs a new exception with the specified detail message.
20: *
21: * @param message the detail message for new PersistenceException.
22: */
23: public PersistenceException(String message) {
24: super (message);
25: }
26:
27: /**
28: * Constructs a new exception with cause for throwable.
29: * Message is created by super constructor (java.lang.Exception),
30: * if cause isn't null - cause.toString().
31: *
32: * @param cause Throwable which caused this PersistenceException.
33: */
34: public PersistenceException(Throwable cause) {
35: super (cause);
36: }
37:
38: /**
39: * Constructs a new exception with the specified detail
40: * message and cause.
41: *
42: * @param message the detail message for new PersistenceException.
43: * @param cause Throwable which caused this PersistenceException.
44: */
45: public PersistenceException(String message, Throwable cause) {
46: super (message, cause);
47: }
48: }
49: /* End of PersistenceException.java */
|