KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > logicalcobwebs > proxool > FatalRuntimeException


1 /*
2  * This software is released under the Apache Software Licence. See
3  * package.html for details. The latest version is available at
4  * http://proxool.sourceforge.net
5  */

6 package org.logicalcobwebs.proxool;
7
8 /**
9  * A type of SQLException that has been defined as fatal. It contains
10  * the {@link #getCause original} plain Exception
11  * just in case you need it.
12  * @version $Revision: 1.1 $, $Date: 2003/09/29 17:48:08 $
13  * @author billhorsman
14  * @author $Author: billhorsman $ (current maintainer)
15  * @see ConnectionPoolDefinitionIF#getFatalSqlExceptions
16  */

17 public class FatalRuntimeException extends RuntimeException JavaDoc {
18
19     /**
20      * @see #getCause
21      */

22     private Exception JavaDoc cause;
23
24     public FatalRuntimeException(Exception JavaDoc cause) {
25         super(cause.getMessage());
26         this.cause = cause;
27     }
28
29     /**
30      * @see Throwable#getCause
31      */

32     public Throwable JavaDoc getCause() {
33         return cause;
34     }
35
36 }
37
Popular Tags