Name: rlT66838 Date: 09/14/99
I frequently want to get the detail message of a
Throwable (or more generally its basic string
representation) together with the stack trace in
a string without necessarily printing them out
right there. It is cumbersome to do this.
There is code similar to the workaround in our product, I believe,
to display an exception in a dialog with a stack trace. I do not think it is
very important since the workaround is only a few lines. However, if the
method is omitted, a programmer without much experience of the Java APIs
might well not know what to do to get the stack trace; I would suggest at
least that the Throwable docs give this (or a better) workaround somewhere
on the Javadoc page.
(Review ID: 30626)
======================================================================
- duplicates
-
JDK-4363318 Provide Programmatic Access to Stack Backtrace
-
- Closed
-