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

Trim stack traces of message logger and message bundle exception methods

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: