gecko-dev/js/js2/java/JSException.java

22 lines
285 B
Java
Raw Normal View History

1999-05-18 22:50:53 +00:00
class JSException extends RuntimeException {
JSException(JSValue x)
1999-05-18 22:50:53 +00:00
{
value = x;
}
JSValue getValue()
1999-05-18 22:50:53 +00:00
{
return value;
}
1999-05-26 01:01:07 +00:00
public String toString()
{
return value.toJSString(null).s;
}
JSValue value;
1999-05-18 22:50:53 +00:00
}