question: public static void clearStackTraces ( Throwable t ) { StackTraceElement [ ] empty = new StackTraceElement [ 0 ] ; while ( t != null ) { t . setStackTrace ( empty ) ; t = t . getCause ( ) ; } }
target:  Clear the stack trace of the given Throwable by replacing it with an empty StackTraceElement array, and do the same for all of its chained causative exceptions.