mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +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;
|
|
|
|
} |