bsh
Class EvalError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by bsh.EvalError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ParseException, TargetError

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

See Also:
TargetError, Serialized Form

Constructor Summary
EvalError(java.lang.String s, bsh.SimpleNode node, CallStack callstack)
           
EvalError(java.lang.String s, bsh.SimpleNode node, CallStack callstack, java.lang.Throwable cause)
           
 
Method Summary
 int getErrorLineNumber()
           
 java.lang.String getErrorSourceFile()
           
 java.lang.String getErrorText()
           
 java.lang.String getMessage()
          Print the error with line number and stack trace.
 java.lang.String getRawMessage()
           
 java.lang.String getScriptStackTrace()
           
 void reThrow(java.lang.String msg)
          Re-throw the error, prepending the specified message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvalError

public EvalError(java.lang.String s,
                 bsh.SimpleNode node,
                 CallStack callstack,
                 java.lang.Throwable cause)

EvalError

public EvalError(java.lang.String s,
                 bsh.SimpleNode node,
                 CallStack callstack)
Method Detail

getMessage

public java.lang.String getMessage()
Print the error with line number and stack trace.

Overrides:
getMessage in class java.lang.Throwable

reThrow

public void reThrow(java.lang.String msg)
             throws EvalError
Re-throw the error, prepending the specified message.

Throws:
EvalError

getErrorText

public java.lang.String getErrorText()

getErrorLineNumber

public int getErrorLineNumber()

getErrorSourceFile

public java.lang.String getErrorSourceFile()

getScriptStackTrace

public java.lang.String getScriptStackTrace()

getRawMessage

public java.lang.String getRawMessage()


? 2000-2005 pat@pat.net :-)