Package bsh
Class EvalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
bsh.EvalError
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ParseException
,TargetError
EvalError indicates that we cannot continue evaluating the script
or the script has thrown an exception.
EvalError may be thrown for a script syntax error, an evaluation
error such as referring to an undefined variable, an internal error.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Print the error with line number and stack trace.void
Re-throw the error, prepending the specified message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EvalError
-
EvalError
-
-
Method Details
-
getMessage
Print the error with line number and stack trace.- Overrides:
getMessage
in classThrowable
-
reThrow
Re-throw the error, prepending the specified message.- Throws:
EvalError
-
getErrorText
-
getErrorLineNumber
public int getErrorLineNumber() -
getErrorSourceFile
-
getScriptStackTrace
-
getRawMessage
-