Class JavaScriptException

  • All Implemented Interfaces:

    public class JavaScriptException
    extends RhinoException
    Java reflection of JavaScript exceptions. Instances of this class are thrown by the JavaScript 'throw' keyword.
    See Also:
    Serialized Form
    • Constructor Detail

      • JavaScriptException

        public JavaScriptException​(java.lang.Object value)
        Use WrappedException(Throwable) to report exceptions in Java code.
      • JavaScriptException

        public JavaScriptException​(java.lang.Object value,
                                   java.lang.String sourceName,
                                   int lineNumber)
        Create a JavaScript exception wrapping the given JavaScript value
        value - the JavaScript value thrown.
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        the value wrapped by this exception
      • getSourceName

        public java.lang.String getSourceName()
        Use RhinoException.sourceName() from the super class.