Index: src/gate/wordnet/WordNetException.java =================================================================== --- src/gate/wordnet/WordNetException.java (revision 7462) +++ src/gate/wordnet/WordNetException.java (working copy) @@ -20,8 +20,11 @@ } public WordNetException(Throwable e) { - super(e.toString()); - this.e = e; + super(e); } -} \ No newline at end of file + public WordNetException(String s, Throwable t) { + super(s, t); + } + +} Index: src/gate/creole/ExecutionException.java =================================================================== --- src/gate/creole/ExecutionException.java (revision 7462) +++ src/gate/creole/ExecutionException.java (working copy) @@ -34,36 +34,11 @@ super(s); } - public ExecutionException(Exception e) { - this.exception = e; + public ExecutionException(Throwable e) { + super(e); } - /** - * Overriden so we can print the enclosed exception's stacktrace too. - */ - public void printStackTrace(){ - printStackTrace(System.err); + public ExecutionException(String message, Throwable e) { + super(message, e); } - - /** - * Overriden so we can print the enclosed exception's stacktrace too. - */ - public void printStackTrace(java.io.PrintStream s) { - s.flush(); - super.printStackTrace(s); - s.print(" Caused by:\n"); - if(exception != null) exception.printStackTrace(s); - } - - /** - * Overriden so we can print the enclosed exception's stacktrace too. - */ - public void printStackTrace(java.io.PrintWriter s) { - s.flush(); - super.printStackTrace(s); - s.print(" Caused by:\n"); - if(exception != null) exception.printStackTrace(s); - } - - Exception exception; } // ExecutionException Index: src/gate/util/GateException.java =================================================================== --- src/gate/util/GateException.java (revision 7462) +++ src/gate/util/GateException.java (working copy) @@ -29,8 +29,6 @@ /** Debug flag */ private static final boolean DEBUG = false; - protected Throwable e; - public GateException() { super(); } @@ -40,45 +38,12 @@ } public GateException(Throwable e) { - super(e.toString()); - this.e = e; + super(e); } public GateException(String message, Throwable e) { - super(message); - this.e = e; + super(message, e); } - /** - * Overridden so we can print the enclosed exception's stack trace too. - */ - public void printStackTrace(){ - printStackTrace(System.err); - } - - /** - * Overridden so we can print the enclosed exception's stack trace too. - */ - public void printStackTrace(PrintStream s) { - s.flush(); - super.printStackTrace(s); - if(e != null){ - s.print(" Caused by:\n"); - e.printStackTrace(s); - } - } - - /** - * Overridden so we can print the enclosed exception's stack trace too. - */ - public void printStackTrace(PrintWriter s) { - s.flush(); - super.printStackTrace(s); - if(e != null){ - s.print(" Caused by:\n"); - e.printStackTrace(s); - } - } - } // GateException