Java Expressions and Assignments
public class EvalException extends Exception { private int pos; private String msg; /* * */ public EvalException(int pos, String msg) { this.pos=pos; this.msg=msg; } /* * (non-Javadoc) * @see java.lang.Throwable#toString() * * Gets the message associated with this exception */ public String toString() { return "eval error" +", pos="+pos +", "+msg; } }