KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > instancepersistence > PersistenceException


1 /* PersistenceException.java */
2
3 package org.enhydra.shark.api.internal.instancepersistence;
4
5 import org.enhydra.shark.api.RootException;
6
7 /**
8  * Class PersistenceException indicates exceptional condition
9  * 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 JavaDoc 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 JavaDoc 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 JavaDoc message, Throwable JavaDoc cause) {
46       super(message, cause);
47     }
48 }
49 /* End of PersistenceException.java */
50
Popular Tags