程序包 bsh
类 EvalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
bsh.EvalError
- 所有已实现的接口:
Serializable
- 直接已知子类:
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.
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
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.
-
构造器详细资料
-
EvalError
-
-
方法详细资料
-
toString
Print the error with line number and stack trace. -
reThrow
Re-throw the error, prepending the specified message.- 抛出:
EvalError
-
getErrorText
-
getErrorLineNumber
public int getErrorLineNumber() -
getErrorSourceFile
-
getScriptStackTrace
-
getMessage
- 覆盖:
getMessage
在类中Throwable
- 另请参阅:
-
setMessage
-
prependMessage
Prepend the message if it is non-null.
-