--- /dev/null
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
+package org.xwt.js;
+
+import org.xwt.util.*;
+import org.xwt.*;
+import java.io.*;
+import java.util.*;
+
+// FIXME: extend Exception, not RuntimeException
+/** An exception which can be thrown and caught by JavaScript code */
+public class JSExn extends RuntimeException {
+ private Object js = null;
+ public JSExn(Object js) { this.js = js; }
+ public String toString() { return "JSExn: " + js; }
+ public String getMessage() { return toString(); }
+ public Object getObject() { return js; }
+}