KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > repositorypersistence > RepositoryException


1 package org.enhydra.shark.api.internal.repositorypersistence;
2
3 import org.enhydra.shark.api.RootException;
4
5 /**
6  * Class RepositoryException indicates exceptional condition
7  * occurring in repository persistence layer, ie. failing transaction.
8  *
9  * @author Sasa Bojanic
10  */

11 public class RepositoryException extends RootException {
12
13    /**
14     * Constructs a new exception with the specified detail message.
15     *
16     * @param message the detail message for new RepositoryException.
17     */

18    public RepositoryException(String JavaDoc message) {
19       super(message);
20    }
21
22    /**
23     * Constructs a new exception with cause for throwable.
24     * Message is created by super constructor (java.lang.Exception),
25     * if cause isn't null - cause.toString().
26     *
27     * @param t Throwable which caused this RepositoryException.
28     */

29    public RepositoryException(Throwable JavaDoc t) {
30       super(t);
31    }
32
33    /**
34     * Constructs a new exception with the specified detail
35     * message and cause.
36     *
37     * @param message the detail message for new RepositoryException.
38     * @param t Throwable which caused this RepositoryException.
39     */

40    public RepositoryException(String JavaDoc message, Throwable JavaDoc t) {
41       super(message, t);
42    }
43 }
44
45
Popular Tags