KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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