mass rename and rebranding from xwt to ibex - fixed to use ixt files
[org.ibex.core.git] / src / org / xwt / js / JSExn.java
diff --git a/src/org/xwt/js/JSExn.java b/src/org/xwt/js/JSExn.java
deleted file mode 100644 (file)
index df1022e..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2004 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.*;
-
-/** An exception which can be thrown and caught by JavaScript code */
-public class JSExn extends Exception { 
-    private Vec backtrace = new Vec();
-    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; } 
-    public void addBacktrace(String sourceName, int lineNo) { backtrace.addElement(sourceName + ":" + lineNo); }
-    public String backtrace() {
-        StringBuffer sb = new StringBuffer(1024);
-        for(int i=0;i<backtrace.size();i++)
-            sb.append("    at " + (String) backtrace.elementAt(i) + "\n");
-        return sb.toString();
-    }
-} 
-
-/** 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; } 
-}
-