Here you can find the source of stackTrace(final Exception t)
Parameter | Description |
---|---|
t | Exception to print to System.err |
public static void stackTrace(final Exception t)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w w w. j a va 2 s. co m*/ * Since calling {@link Exception#printStackTrace()} is considered a bad practice, we wrap all these calls with this * method to prevent static code analysis from complaning. Also allows us to change this practice in one spot. * * @param t Exception to print to {@code System.err} */ public static void stackTrace(final Exception t) { t.printStackTrace(System.err); } }