01: /*
02: * Copyright 2006 Ethan Nicholas. All rights reserved.
03: * Use is subject to license terms.
04: */
05: package jaxx;
06:
07: /** Thrown by the compiler when an error occurs.
08: */
09: public class CompilerException extends RuntimeException {
10: /** Creates a new <code>ParseException</code>. */
11: public CompilerException() {
12: }
13:
14: /** Creates a new <code>ParseException</code> with the specified detail message.
15: *
16: *@param msg the exception's detail message
17: */
18: public CompilerException(String msg) {
19: super (msg);
20: }
21:
22: /** Creates a new <code>ParseException</code> with the specified cause.
23: *
24: *@param initCause the exception's initCause
25: */
26: public CompilerException(Throwable initCause) {
27: super (initCause);
28: }
29:
30: /** Creates a new <code>ParseException</code> with the specified detail message and cause.
31: *
32: *@param msg the exception's detail message
33: *@param initCause the exception's initCause
34: */
35: public CompilerException(String msg, Throwable initCause) {
36: super (msg, initCause);
37: }
38:
39: public void printStackTrace() {
40: super .printStackTrace();
41: System.err.println("CompilerException printed from:");
42: Thread.dumpStack();
43: }
44: }
|