mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +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;
|
|
|
|
} |