mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +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;
|
|
|
|
} |