de.dante.extex.interpreter
Interface ErrorHandler

All Known Implementing Classes:
ErrorHandlerImpl

public interface ErrorHandler

This interface defines the capabilities of an error handler. The error handler is invoked in the interpreter when an exception is caught. The error handler can be used to clear things up such that the processing can be continued.

Version:
$Revision: 1.15 $
Author:
Gerd Neugebauer, Michael Niedermair

Method Summary
 boolean handleError(GeneralException e, Token token, TokenSource source, Context context)
          This is the error handling callback.
 void setEditHandler(EditHandler editHandler)
          Setter for the edit handler.
 

Method Detail

handleError

public boolean handleError(GeneralException e,
                           Token token,
                           TokenSource source,
                           Context context)
                    throws InterpreterException
This is the error handling callback.

Parameters:
e - the exception which has led to the invokation
token - the token leading to the error
source - the token source
context - the processor context
Returns:
true iff the processing can continue
Throws:
InterpreterException - in case of a problem

setEditHandler

public void setEditHandler(EditHandler editHandler)
Setter for the edit handler.

Parameters:
editHandler - the new edit handler