moved JSRuntimeExn into its own file to satisfy eclipse compiler
[org.ibex.js.git] / src / org / ibex / js / JSRuntimeExn.java
1 // Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] 
2 package org.ibex.js; 
3
4 import org.ibex.util.*; 
5 import java.io.*;
6
7 /** should only be used for failed coercions */
8 class JSRuntimeExn extends RuntimeException {
9     private Object js = null; 
10     public JSRuntimeExn(Object js) { this.js = js; } 
11     public String toString() { return "JSRuntimeExn: " + js; }
12     public String getMessage() { return toString(); }
13     public Object getObject() { return js; } 
14 }