mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
22 lines
285 B
Java
22 lines
285 B
Java
|
|
|
|
class JSException extends RuntimeException {
|
|
|
|
JSException(JSValue x)
|
|
{
|
|
value = x;
|
|
}
|
|
|
|
JSValue getValue()
|
|
{
|
|
return value;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
return value.toJSString(null).s;
|
|
}
|
|
|
|
JSValue value;
|
|
|
|
} |