com.google.gwt.dev.js.rhino
Class JavaScriptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.gwt.dev.js.rhino.JavaScriptException
All Implemented Interfaces:
java.io.Serializable

public class JavaScriptException
extends java.lang.Exception

Java reflection of JavaScript exceptions. (Possibly wrapping a Java exception.)

See Also:
Serialized Form

Constructor Summary
JavaScriptException(java.lang.Object value)
          Create a JavaScript exception wrapping the given JavaScript value.
 
Method Summary
 java.lang.Object getValue()
          Get the exception value originally thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaScriptException

public JavaScriptException(java.lang.Object value)
Create a JavaScript exception wrapping the given JavaScript value. Instances of this class are thrown by the JavaScript 'throw' keyword.

Parameters:
value - the JavaScript value thrown.
Method Detail

getValue

public java.lang.Object getValue()
Get the exception value originally thrown. This may be a JavaScript value (null, undefined, Boolean, Number, String, Scriptable or Function) or a Java exception value thrown from a host object or from Java called through LiveConnect.

Returns:
the value wrapped by this exception