1 // Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
9 // FIXME: extend Exception, not RuntimeException
10 /** An exception which can be thrown and caught by JavaScript code */
11 public class JSExn extends RuntimeException {
12 private Object js = null;
13 public JSExn(Object js) { this.js = js; }
14 public String toString() { return "JSExn: " + js; }
15 public String getMessage() { return toString(); }
16 public Object getObject() { return js; }