Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

MealMasterParseErrorHandler Class Reference

#include <mealMasterParseErrorHandler.hpp>

Inheritance diagram for MealMasterParseErrorHandler:

Inheritance graph
[legend]

Public Member Functions

 MealMasterParseErrorHandler (void)
 Constructor.
virtual void error (const MealMasterParseError &e) throw (Error)
 Method handling the errors.

Detailed Description

Base class for error handlers for handling parse errors. This implementation just throws the error.
See also:
MealMasterParseError

StoreErroneousHandler

MealMasterCompiler

Date:
Sun Jan 09 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 29 of file mealMasterParseErrorHandler.hpp.


Constructor & Destructor Documentation

MealMasterParseErrorHandler::MealMasterParseErrorHandler ( void   )  [inline]

Constructor.

Definition at line 32 of file mealMasterParseErrorHandler.hpp.

00032 {}


Member Function Documentation

void MealMasterParseErrorHandler::error ( const MealMasterParseError e  )  throw (Error) [virtual]

Method handling the errors.

Reimplemented in MealMasterIgnoreErrorHandler, and MealMasterStoreErroneousHandler.

Definition at line 18 of file mealMasterParseErrorHandler.cpp.

References ERRORMACRO.

00019 {
00020   if ( m_context.empty() ) {
00021     ERRORMACRO( false, Error, ,
00022                 "Parse error in line " << e.getErrorLineNumber() << ": "
00023                 << e.what() );
00024   } else {
00025     ERRORMACRO( false, Error, , m_context << ": Parse error in line "
00026                 << e.getErrorLineNumber() << ": " << e.what() );
00027   };
00028 }


The documentation for this class was generated from the following files:

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License