程序包 bsh

类 EvalError

所有已实现的接口:
Serializable
直接已知子类:
ParseException, TargetError

public class EvalError extends Exception
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.

另请参阅:
  • 构造器详细资料

    • EvalError

      public EvalError(String s, bsh.SimpleNode node, CallStack callstack)
  • 方法详细资料

    • toString

      public String toString()
      Print the error with line number and stack trace.
      覆盖:
      toString 在类中 Throwable
    • reThrow

      public void reThrow(String msg) throws EvalError
      Re-throw the error, prepending the specified message.
      抛出:
      EvalError
    • getErrorText

      public String getErrorText()
    • getErrorLineNumber

      public int getErrorLineNumber()
    • getErrorSourceFile

      public String getErrorSourceFile()
    • getScriptStackTrace

      public String getScriptStackTrace()
    • getMessage

      public String getMessage()
      覆盖:
      getMessage 在类中 Throwable
      另请参阅:
    • setMessage

      public void setMessage(String s)
    • prependMessage

      protected void prependMessage(String s)
      Prepend the message if it is non-null.