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

Error Class Reference

#include <Error.h>

Inheritance diagram for Error:

AssertionError NSError SyntaxError SystemError DuplicateArticleError InvalidArticleError NoNewsServerError NoSuchArticleError NoSuchFieldError NoSuchGroupError NotAllowedError PostingFailedError ResponseError UsageError IOError List of all members.

Public Member Functions

 Error (const char *txt="unknown")
 Error (const char *txt, const char *file, const char *function, int line)
 Error (const string &txt)
 Error (const string &txt, const char *file, const char *function, int line)
virtual ~Error ()
virtual void print ()

Public Attributes

string _errtext
string _file
string _function
int _line

Detailed Description

Author:
Thomas Gschwind

Bug:
Documentation is missing.

Definition at line 33 of file Error.h.


Constructor & Destructor Documentation

Error::Error const char *  txt = "unknown"  )  [inline]
 

Definition at line 39 of file Error.h.

References _errtext, Logger::p(), print(), slog, and VERB.

00039                                            :_errtext(txt) {
00040                 VERB(slog.p(Logger::Debug);
00041                      print());
00042         } Error(const char *txt, const char *file, const char *function,

Error::Error const char *  txt,
const char *  file,
const char *  function,
int  line
[inline]
 

Definition at line 42 of file Error.h.

00044         :_errtext(txt), _file(file), _function(function), _line(line) {
00045                 VERB(slog.p(Logger::Debug);
00046                      print());
00047         }

Error::Error const string &  txt  )  [inline]
 

Definition at line 48 of file Error.h.

References _errtext, Logger::p(), print(), slog, and VERB.

00048                                  :_errtext(txt) {
00049                 VERB(slog.p(Logger::Debug);
00050                      print());
00051         }

Error::Error const string &  txt,
const char *  file,
const char *  function,
int  line
[inline]
 

Definition at line 52 of file Error.h.

References _errtext, _file, _function, Logger::p(), print(), slog, and VERB.

00054         :_errtext(txt), _file(file), _function(function), _line(line) {
00055                 VERB(slog.p(Logger::Debug);
00056                      print());
00057         }

virtual Error::~Error  )  [inline, virtual]
 

Definition at line 58 of file Error.h.

00058                           {
00059         }


Member Function Documentation

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

Reimplemented in InvalidArticleError, SyntaxError, NSError, NoSuchFieldError, NoNewsServerError, NoSuchGroupError, DuplicateArticleError, NoSuchArticleError, PostingFailedError, NotAllowedError, UsageError, ResponseError, SystemError, IOError, and AssertionError.

Definition at line 61 of file Error.h.

References _errtext, _file, _function, and slog.

Referenced by Error().

00061                              {
00062                 slog << "Exception!"
00063                     << " File: " << _file
00064                     << " Function: " << _function
00065                     << " Line: " << _line << " Desc: " << _errtext << "\n";
00066         }


Member Data Documentation

string Error::_errtext
 

Definition at line 35 of file Error.h.

Referenced by Error(), and print().

string Error::_file
 

Definition at line 36 of file Error.h.

Referenced by Error(), and print().

string Error::_function
 

Definition at line 37 of file Error.h.

Referenced by Error(), and print().

int Error::_line
 

Definition at line 38 of file Error.h.


The documentation for this class was generated from the following file:
Generated on Fri Aug 20 10:58:10 2004 for NewsCache by doxygen 1.3.6-20040222