1 // Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
4 import org.ibex.util.*;
7 /** should only be used for failed coercions */
8 class JSRuntimeExn extends RuntimeException {
9 private Object js = null;
10 public JSRuntimeExn(Object js) { this.js = js; }
11 public String toString() { return "JSRuntimeExn: " + js; }
12 public String getMessage() { return toString(); }
13 public Object getObject() { return js; }