KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > TransactionException


1 package org.enhydra.shark.api;
2
3 /**
4  * Exception thrown by implementations of SharkTransaction and other transaction interfaces.
5  *
6  * @author Vladimir Puskas
7  */

8 public class TransactionException extends RootException {
9
10    /**
11     * Constructs a new transaction exception with the specified detail message.
12     *
13     * @param message the detail message.
14     */

15    public TransactionException(String JavaDoc message) {
16       super(message);
17    }
18
19    /**
20     * Constructs a new transaction exception with the specified detail message
21     * and cause.
22     *
23     * @param message the detail message.
24     * @param cause A null value is permitted, and indicates that
25     * the cause is nonexistent or unknown.
26     */

27    public TransactionException(String JavaDoc message, Throwable JavaDoc cause) {
28       super(message, cause);
29    }
30
31    /**
32     * Constructs a new transaction exception with the specified cause.
33     *
34     * @param cause A null value is permitted, and indicates that
35     * the cause is nonexistent or unknown.
36     */

37    public TransactionException(Throwable JavaDoc cause) {
38       super(cause);
39    }
40 }
41 /* End of TransactionException.java */
42
43
Popular Tags