java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gjt.sp.jedit.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
-
Method Summary
Modifier and TypeMethodDescriptionint
protected void
Prepend the message if it is non-null.void
Re-throw the error, prepending the specified message.void
setMessage
(String s) toString()
Print the error with line number and stack trace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
EvalError
-
-
Method Details
-
toString
Print the error with line number and stack trace. -
reThrow
Re-throw the error, prepending the specified message.- Throws:
EvalError
-
getErrorText
-
getErrorLineNumber
public int getErrorLineNumber() -
getErrorSourceFile
-
getScriptStackTrace
-
getMessage
- Overrides:
getMessage
in classThrowable
- See Also:
-
setMessage
-
prependMessage
Prepend the message if it is non-null.
-