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.
7 import org.ibex.util.*;
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; }