01: /*
02: * This software is released under the Apache Software Licence. See
03: * package.html for details. The latest version is available at
04: * http://proxool.sourceforge.net
05: */
06: package org.logicalcobwebs.proxool;
07:
08: /**
09: * 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 {
18:
19: /**
20: * @see #getCause
21: */
22: private Exception cause;
23:
24: public FatalRuntimeException(Exception cause) {
25: super (cause.getMessage());
26: this .cause = cause;
27: }
28:
29: /**
30: * @see Throwable#getCause
31: */
32: public Throwable getCause() {
33: return cause;
34: }
35:
36: }
|