1 /*
2
3 Loader - tool for transfering data from one JDBC source to another and
4 doing transformations during copy.
5
6 Copyright (C) 2002 Together
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22 LoaderException.java
23 Date: 22.09.2001.
24 @version 1.0
25 @author:
26 Milosevic Sinisa
27 */
28
29 package org.webdocwf.util.loader;
30
31 import java.sql.*;
32 import java.io.*;
33 import java.rmi.AccessException;
34 import java.lang.*;
35
36 public class LoaderException extends ClassNotFoundException {
37 private Throwable cause;
38
39
40 public LoaderException(String msg) {
41 super(msg);
42 cause = null;
43 }
44
45 public LoaderException(String msg,
46 Throwable cause) {
47 super(msg);
48 this.cause = cause;
49 }
50
51 public String getMessage() {
52 return super.getMessage();
53 }
54
55 /***
56 * Gets the exception associated with this exception.
57 * @return The exception or null if no cause is specified.
58 */
59 public Throwable getCause() {
60 return cause;
61 }
62
63 /***
64 * Prints this ChainedException and its backtrace, and the causes
65 * and their stack traces to the standard error stream.
66 */
67 public void printStackTrace() {
68 super.printStackTrace();
69 Throwable a = new Throwable();
70 a.printStackTrace();
71 }
72
73 /***
74 * Prints this LoaderException and its backtrace, and the causes
75 * and their stack traces to the e specified print stream.
76 */
77 public void printStackTrace(PrintStream s) {
78 super.printStackTrace(s);
79 Throwable a = new Throwable();
80 a.printStackTrace( s);
81 }
82
83 /***
84 * Prints this LoaderException and its backtrace, and the causes
85 * and their stack traces to the specified print writer.
86 */
87 public void printStackTrace(PrintWriter s) {
88 super.printStackTrace(s);
89 Throwable a = new Throwable();
90 a.printStackTrace(s);
91 }
92 }
This page automatically generated by Maven