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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidPrepend the message if it is non-null.voidRe-throw the error, prepending the specified message.voidsetMessage(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:
getMessagein classThrowable- See Also:
-
setMessage
-
prependMessage
Prepend the message if it is non-null.
-