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

Trim stack traces of message logger and message bundle exception methods

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Beta8
    • Labels:
      None
    • Estimated Difficulty:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jamezp James Perkins
                Reporter:
                dmlloyd David Lloyd
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: