Package org.mozilla.javascript
Class EvaluatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mozilla.javascript.RhinoException
org.mozilla.javascript.EvaluatorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WrappedException
The class of exceptions thrown by the JavaScript engine.
- See Also:
-
Constructor Summary
ConstructorDescriptionEvaluatorException
(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
Modifier and TypeMethodDescriptionint
Deprecated.int
Deprecated.UseRhinoException.lineNumber()
from the super class.Deprecated.UseRhinoException.lineSource()
from the super class.Deprecated.UseRhinoException.sourceName()
from the super class.Methods inherited from class org.mozilla.javascript.RhinoException
columnNumber, details, getMessage, getScriptStack, getScriptStack, getScriptStackTrace, getScriptStackTrace, getScriptStackTrace, getStackStyle, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, setStackStyle, sourceName, useMozillaStackStyle, usesMozillaStackStyle
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EvaluatorException
-
EvaluatorException
Create an exception with the specified detail message.Errors internal to the JavaScript engine will simply throw a RuntimeException.
- Parameters:
detail
- the error messagesourceName
- the name of the source responsible for the errorlineNumber
- 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 messagesourceName
- the name of the source responsible for the errorlineNumber
- the line number of the sourcelineSource
- the source of the line containing the error (may be null if unknown)columnNumber
- the columnNumber of the source (may be zero if unknown)
-
-
Method Details
-
getSourceName
Deprecated.UseRhinoException.sourceName()
from the super class. -
getLineNumber
Deprecated.UseRhinoException.lineNumber()
from the super class. -
getColumnNumber
Deprecated.UseRhinoException.columnNumber()
from the super class. -
getLineSource
Deprecated.UseRhinoException.lineSource()
from the super class.
-
RhinoException.columnNumber()
from the super class.