Class JavaScriptException

  • All Implemented Interfaces:
    java.io.Serializable

    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

        @Deprecated
        public JavaScriptException​(java.lang.Object value)
        Deprecated.
        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
        Parameters:
        value - the JavaScript value thrown.
    • Method Detail

      • getValue

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

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