// Copyright 2000-2005 the Contributors, as shown in the revision logs. // Licensed under the Apache Public Source License 2.0 ("the License"). // You may not use this file except in compliance with the License. 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; } }