org.omegahat.Environment.Debugger
Class DefaultErrorHandler

java.lang.Object
  |
  +--org.omegahat.Environment.Debugger.BasicErrorHandler
        |
        +--org.omegahat.Environment.Debugger.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends BasicErrorHandler
implements ErrorHandler


Fields inherited from class org.omegahat.Environment.Debugger.BasicErrorHandler
evaluator
 
Constructor Summary
DefaultErrorHandler()
           
DefaultErrorHandler(Evaluator evaluator)
           
DefaultErrorHandler(java.lang.Throwable e, java.lang.String msg, Evaluator eval)
           
 
Method Summary
 java.lang.Object error(EvaluationException e)
           
 java.lang.Object error(java.lang.Throwable e, java.lang.String msg)
          Handle the specified error with the given message, displaying it to the user along with the expression in which it occurred.
 java.lang.Object error(java.lang.Throwable e, java.lang.String msg, ExpressionInt expr)
          Display the exception with the message supplied and identify the Omegahat expression in which it occurred.
 
Methods inherited from class org.omegahat.Environment.Debugger.BasicErrorHandler
evaluator, evaluator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()

DefaultErrorHandler

public DefaultErrorHandler(Evaluator evaluator)

DefaultErrorHandler

public DefaultErrorHandler(java.lang.Throwable e,
                           java.lang.String msg,
                           Evaluator eval)
                    throws java.lang.Throwable
Method Detail

error

public java.lang.Object error(java.lang.Throwable e,
                              java.lang.String msg)
Handle the specified error with the given message, displaying it to the user along with the expression in which it occurred.
Overrides:
error in class BasicErrorHandler

error

public java.lang.Object error(java.lang.Throwable e,
                              java.lang.String msg,
                              ExpressionInt expr)
Display the exception with the message supplied and identify the Omegahat expression in which it occurred.
Specified by:
error in interface ErrorHandler
Overrides:
error in class BasicErrorHandler

error

public java.lang.Object error(EvaluationException e)