Uploaded image for project: 'Log Tool'
  1. Log Tool
  2. LOGTOOL-25

Trim stack traces of message logger and message bundle exception methods

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 1.0.0.Beta8
    • None
    • None
    • Low

    Description

      When generating a method which constructs a new exception, before returning the exception, the method should do:

          WhateverException ex = new WhateverException(...);
          StackTraceElement[] st = ex.getStackTrace();
          ex.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
          return ex;
      

      The idea is to trim the logger class name off of the stack.

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            dlloyd@redhat.com David Lloyd
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: