110111112113114115116117118119120
for( int i=0; i<stackTrace.size(); i++ ) ste[i] = stackTrace.get(i).toStackTraceElement(); e.setStackTrace(ste); } if(cause!=null) e.initCause(cause.toException()); return e; } /** * Captures one stack frame.