Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ErrorHandler Class Reference

Error handler class. More...

#include <errorhandler.hpp>

List of all members.

Static Public Member Functions

void error (int lineNumber, const std::string &message)
 Checker error handling function.

void error (const std::string &file, const int &line, const int &column, const std::string &msg)
 Parser error handling function.

int getNumErrors ()
 Get the total number of errors.


Static Private Attributes

int TotalErrors = 0


Detailed Description

Error handler class.

This class has static error functions used by the parser and the checker to report errors.

Definition at line 19 of file errorhandler.hpp.


Member Function Documentation

void ErrorHandler::error const std::string &  file,
const int &  line,
const int &  column,
const std::string &  msg
[static]
 

Parser error handling function.

Reports error and then returns normally.

Parameters:
file Source file of the program that has an error.
line Line number where the error occured.
column Column where the error occured
msg Additional error msg

Definition at line 46 of file errorhandler.cpp.

void ErrorHandler::error int  lineNumber,
const std::string &  message
[static]
 

Checker error handling function.

Reports error and then returns normally. After 5 errors are encountered it quits.

Parameters:
lineNumber Line number where the error occured.
message Additional error msg

Definition at line 24 of file errorhandler.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 14:26:28 2003 for Ck by doxygen 1.3.3