I have code that looks like this, which is great for displaying a message, but cannot determine how to capture the stack trace.
try { throw new RuntimeException("This is bad stuff!"); } catch (Exception e ) { mainForm.append("Exception: " + e.getMessage()); }
Calling e.printStackTrace () sends it somewhere that I cannot find.
source share