1 33 34 35 package bsh; 36 37 46 public class UtilTargetError extends UtilEvalError 47 { 48 public Throwable t; 49 50 public UtilTargetError( String message, Throwable t ) { 51 super( message ); 52 this.t = t; 53 } 54 55 public UtilTargetError( Throwable t ) { 56 this( null, t ); 57 } 58 59 62 public EvalError toEvalError( 63 String msg, SimpleNode node, CallStack callstack ) 64 { 65 if ( msg == null ) 66 msg = getMessage(); 67 else 68 msg = msg + ": " + getMessage(); 69 70 return new TargetError( msg, t, node, callstack, false ); 71 } 72 } 73 74 | Popular Tags |