public void setTrace(Throwable t) {
        StringWriter sw = new StringWriter();
        t.printStackTrace(new PrintWriter(sw));
        setTrace(sw.getBuffer().toString());
    }
public void setTrace ( Throwable t ) { StringWriter sw = new StringWriter ( ) ; t . printStackTrace ( new PrintWriter ( sw ) ) ; setTrace ( sw . getBuffer ( ) . toString ( ) ) ; }
@param t the error stack trace