Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4271561

Throwable.getStackTrace() would be very convenient

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.8, 1.2.2
    • core-libs
    • generic
    • generic



      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)
      ======================================================================

            jjb Josh Bloch (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: