private static void printStackTraceElement ( StackTraceElement trace , PrintWriter out , ClassLoader loader ) { try { LineMap map = getScriptLineMap ( trace . getClassName ( ) , loader ) ; if ( map != null ) { LineMap . Line line = map . getLine ( trace . getLineNumber ( ) ) ; if ( line != null ) { out . print ( trace . getClassName ( ) + "." + trace . getMethodName ( ) ) ; out . print ( "(" + line . getSourceFilename ( ) + ":" ) ; out . println ( line . getSourceLine ( trace . getLineNumber ( ) ) + ")" ) ; return ; } } } catch ( Throwable e ) { } out . println ( trace ) ; }
Prints a single stack trace element .