Community
Participate
Working Groups
Exception that wrap other exception such as ClassNotFoundException, ExceptionInInitializerError, ExceptionInInitializerError, etc, overwrite the printStackTrace(...) methods to print the wrapped exception. SWTException should to the same. Because users need to see SWTException.throwable, they are hacking Workbench to do: if (e instanceof SWTException) { SWTException swt= (SWTException)e; Throwable t= swt.throwable; if (t != null) { t.printStackTrace(); } } NOTES:
We modified "printStackTrace()" to print the trace for the enclosed exception. We did not modify the versions of this method which take an argument (i.e. the PrintWriter or PrintStream version) because this would break compatibility with J2ME.