Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

SyntaxError Class Reference

#include <Lexer.h>

Inheritance diagram for SyntaxError:

Error List of all members.

Public Member Functions

 SyntaxError (const Lexer &lex, const char *txt, const char *file, const char *function, int line)
virtual void print ()

Detailed Description

Author:
Thomas Gschwind

Bug:
Documentation is missing.

Definition at line 115 of file Lexer.h.


Constructor & Destructor Documentation

SyntaxError::SyntaxError const Lexer lex,
const char *  txt,
const char *  file,
const char *  function,
int  line
[inline]
 

Definition at line 117 of file Lexer.h.

References Lexer::_fn, Lexer::_line, Logger::Error, Logger::p(), print(), slog, and VERB.

00119         :Error(txt, file, function, line) {
00120                 char buf[256];
00121                  sprintf(buf, ":%d: ", lex._line);
00122 
00123                  _errtext = lex._fn;
00124                  _errtext += buf;
00125                  _errtext += txt;
00126                  VERB(slog.p(Logger::Error);
00127                       SyntaxError::print());
00128         } virtual void print() {


Member Function Documentation

virtual void SyntaxError::print void   )  [inline, virtual]
 

Reimplemented from Error.

Definition at line 128 of file Lexer.h.

Referenced by SyntaxError().

00128                                {
00129                 slog << "Exception!\n"
00130                     << "  Type: Syntax\n"
00131                     << "  Desc: " << _errtext << "\n";
00132         }


The documentation for this class was generated from the following file:
Generated on Sun Oct 24 21:08:25 2004 for NewsCache by doxygen 1.3.6-20040222