com.google.javascript.rhino
Class EvaluatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.javascript.rhino.RhinoException
                  extended by com.google.javascript.rhino.EvaluatorException
All Implemented Interfaces:
Serializable

public class EvaluatorException
extends RhinoException

The class of exceptions thrown by the JavaScript engine.

See Also:
Serialized Form

Constructor Summary
EvaluatorException(String detail)
           
EvaluatorException(String detail, String sourceName, int lineNumber)
          Create an exception with the specified detail message.
EvaluatorException(String detail, String sourceName, int lineNumber, String lineSource, int columnNumber)
          Create an exception with the specified detail message.
 
Method Summary
 
Methods inherited from class com.google.javascript.rhino.RhinoException
columnNumber, details, getMessage, getScriptStackTrace, getScriptStackTrace, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, sourceName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluatorException

public EvaluatorException(String detail)

EvaluatorException

public EvaluatorException(String detail,
                          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(String detail,
                          String sourceName,
                          int lineNumber,
                          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 reponsible 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)