Details
-
Enhancement
-
Resolution: Done
-
Major
-
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.