Class EvaluatorException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    WrappedException

    public class EvaluatorException
    extends RhinoException
    The class of exceptions thrown by the JavaScript engine.
    See Also:
    Serialized Form
    • Constructor Detail

      • EvaluatorException

        public EvaluatorException​(java.lang.String detail)
      • EvaluatorException

        public EvaluatorException​(java.lang.String detail,
                                  java.lang.String sourceName,
                                  int lineNumber)
        Create an exception with the specified detail message. Errors internal to the JavaScript engine will simply throw a RuntimeException.
        Parameters:
        detail - the error message
        sourceName - the name of the source reponsible for the error
        lineNumber - the line number of the source
      • EvaluatorException

        public EvaluatorException​(java.lang.String detail,
                                  java.lang.String sourceName,
                                  int lineNumber,
                                  java.lang.String lineSource,
                                  int columnNumber)
        Create an exception with the specified detail message. Errors internal to the JavaScript engine will simply throw a RuntimeException.
        Parameters:
        detail - the error message
        sourceName - the name of the source responsible for the error
        lineNumber - the line number of the source
        columnNumber - the columnNumber of the source (may be zero if unknown)
        lineSource - the source of the line containing the error (may be null if unknown)