org.extex.interpreter
Interface ErrorHandler

All Known Implementing Classes:
ErrorHandlerImpl, ErrorHandlerTeXImpl

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: 5586 $
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

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

Parameters:
e - the exception which has led to the invocation
token - the token leading to the error
source - the token source
context - the processor context
Returns:
true iff the processing can continue
Throws:
HelpingException - in case of en error

setEditHandler

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

Parameters:
editHandler - the new edit handler