licensing update to APSL 2.0
[org.ibex.js.git] / src / org / ibex / js / JSRuntimeExn.java
1 // Copyright 2000-2005 the Contributors, as shown in the revision logs.
2 // Licensed under the Apache Public Source License 2.0 ("the License").
3 // You may not use this file except in compliance with the License.
4
5 package org.ibex.js; 
6
7 import org.ibex.util.*; 
8 import java.io.*;
9
10 /** should only be used for failed coercions */
11 class JSRuntimeExn extends RuntimeException {
12     private Object js = null; 
13     public JSRuntimeExn(Object js) { this.js = js; } 
14     public String toString() { return "JSRuntimeExn: " + js; }
15     public String getMessage() { return toString(); }
16     public Object getObject() { return js; } 
17 }