cz.cuni.amis.pogamut.base.communication.parser.impl.yylex
Interface IYylexObserver

All Known Implementing Classes:
IYylexObserver.LogObserver

public interface IYylexObserver

Interface for reporting of Yylex exceptions.


Nested Class Summary
static class IYylexObserver.LogObserver
          Default implementation of the IYylexObserver logging everything into AgentLogger.platform() log category.
 
Method Summary
 void exception(java.lang.Exception e, java.lang.String info)
          Called whenever exception occures in the Yylex caused by OUR miscoding.
 void warning(java.lang.String info)
          Called when some mischief happens but the parser recovers.
 

Method Detail

exception

void exception(java.lang.Exception e,
               java.lang.String info)
Called whenever exception occures in the Yylex caused by OUR miscoding. (Note that we're not hacking Yylex code to report all it's exceptions through this observer - we will call this observer only from our parts of the code from yylex.java)

Parameters:
e - never null
info - never null

warning

void warning(java.lang.String info)
Called when some mischief happens but the parser recovers. (Like wrong parsing of the message, skipping to next...)

Parameters:
info -