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