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

Package class diagram package IYylexObserver
All Known Implementing Classes:
IYylexObserver.LogObserver

public interface IYylexObserver

Interface for reporting of Yylex exceptions.

Author:
Jimmy

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

Method Detail

exception

void exception(Exception e,
               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(String info)
Called when some mischief happens but the parser recovers. (Like wrong parsing of the message, skipping to next...)

Parameters:
info -


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.