moved JSRuntimeExn into its own file to satisfy eclipse compiler
authoradam <adam@megacz.com>
Mon, 27 Dec 2004 05:44:03 +0000 (05:44 +0000)
committeradam <adam@megacz.com>
Mon, 27 Dec 2004 05:44:03 +0000 (05:44 +0000)
darcs-hash:20041227054403-5007d-59cc243c9ef3fcf2bd9705f88e0d2504351d6be9.gz

src/org/ibex/js/JSExn.java
src/org/ibex/js/JSRuntimeExn.java [new file with mode: 0644]

index ff4abc5..1fda3c7 100644 (file)
@@ -51,13 +51,3 @@ public class JSExn extends Exception {
         }
     }
 } 
-
-/** should only be used for failed coercions */
-class JSRuntimeExn extends RuntimeException {
-    private Object js = null; 
-    public JSRuntimeExn(Object js) { this.js = js; } 
-    public String toString() { return "JSRuntimeExn: " + js; }
-    public String getMessage() { return toString(); }
-    public Object getObject() { return js; } 
-}
-
diff --git a/src/org/ibex/js/JSRuntimeExn.java b/src/org/ibex/js/JSRuntimeExn.java
new file mode 100644 (file)
index 0000000..5ff085c
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] 
+package org.ibex.js; 
+
+import org.ibex.util.*; 
+import java.io.*;
+
+/** should only be used for failed coercions */
+class JSRuntimeExn extends RuntimeException {
+    private Object js = null; 
+    public JSRuntimeExn(Object js) { this.js = js; } 
+    public String toString() { return "JSRuntimeExn: " + js; }
+    public String getMessage() { return toString(); }
+    public Object getObject() { return js; } 
+}