/** * Displays an exception's stack trace, if <code>debug</code> or * <code>always</code>. */ protected void stacktrace( Throwable e, boolean always ) { if( debug || always ) { println( ">>> stacktrace:" ); if( output instanceof PrintStream ) { e.printStackTrace( (PrintStream)output ); } else { e.printStackTrace( (PrintWriter)output ); } } }
/** * For Exception. */ protected void report( Exception e, boolean child ) { println( e.getMessage() ); stacktrace( e, false ); }
/** * For everything else. */ protected void report( Throwable e, boolean child ) { println( ">>> a serious error occurred: " + e.getMessage() ); stacktrace( e, true ); }
/** * For GroovyException. */ protected void report( GroovyExceptionInterface e, boolean child ) { println( ((Exception)e).getMessage() ); stacktrace( (Exception)e, false ); }
/** * For CompilationFailedException. */ protected void report( CompilationFailedException e, boolean child ) { println( e.toString() ); stacktrace( e, false ); }
/** * For GroovyException. */ protected void report( GroovyExceptionInterface e, boolean child ) { println( ((Exception)e).getMessage() ); stacktrace( (Exception)e, false ); }
/** * For Exception. */ protected void report( Exception e, boolean child ) { println( e.getMessage() ); stacktrace( e, false ); }
/** * For GroovyException. */ protected void report( GroovyExceptionInterface e, boolean child ) { println( ((Exception)e).getMessage() ); stacktrace( (Exception)e, false ); }
/** * For everything else. */ protected void report( Throwable e, boolean child ) { println( ">>> a serious error occurred: " + e.getMessage() ); stacktrace( e, true ); }
/** * For GroovyException. */ protected void report( GroovyExceptionInterface e, boolean child ) { println( ((Exception)e).getMessage() ); stacktrace( (Exception)e, false ); }
/** * For everything else. */ protected void report( Throwable e, boolean child ) { println( ">>> a serious error occurred: " + e.getMessage() ); stacktrace( e, true ); }
/** * For Exception. */ protected void report( Exception e, boolean child ) { println( e.getMessage() ); stacktrace( e, false ); }
/** * For Exception. */ protected void report( Exception e, boolean child ) { println( e.getMessage() ); stacktrace( e, false ); }
/** * For everything else. */ protected void report( Throwable e, boolean child ) { println( ">>> a serious error occurred: " + e.getMessage() ); stacktrace( e, true ); }
/** * For GroovyException. */ protected void report( GroovyExceptionInterface e, boolean child ) { println( ((Exception)e).getMessage() ); stacktrace( (Exception)e, false ); }
/** * For everything else. */ protected void report( Throwable e, boolean child ) { println( ">>> a serious error occurred: " + e.getMessage() ); stacktrace( e, true ); }
/** * For Exception. */ protected void report( Exception e, boolean child ) { println( e.getMessage() ); stacktrace( e, false ); }
/** * For CompilationFailedException. */ protected void report( CompilationFailedException e, boolean child ) { println( e.toString() ); stacktrace( e, false ); }
/** * For CompilationFailedException. */ protected void report( CompilationFailedException e, boolean child ) { println( e.toString() ); stacktrace( e, false ); }
/** * For CompilationFailedException. */ protected void report( CompilationFailedException e, boolean child ) { println( e.toString() ); stacktrace( e, false ); }