ConfigException Class Reference
[Configuration-related objects]

A general-purpose class for configuration file exceptions. More...

#include <cmconfig.h>

Inheritance diagram for ConfigException:

Inheritance graph
[legend]
Collaboration diagram for ConfigException:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConfigException (const string &)
 ConfigException (const string &, const string &, const int)
virtual ~ConfigException () throw ()
virtual const char * what (void) const throw ()
void set_file (const string &)
void set_line (const int)

Protected Attributes

string reason
string file
int line


Detailed Description

A general-purpose class for configuration file exceptions.

Since numerous applications need to understand the configuation file subsystem, we make a set of exceptions to return information to these programs.

Todo:
This should be moved to be a subclass of CMException.

Definition at line 143 of file cmconfig.h.


Constructor & Destructor Documentation

ConfigException::ConfigException ( const string &  r  ) 

Definition at line 171 of file cmconfig.cc.

ConfigException::ConfigException ( const string &  r,
const string &  f,
const   int 
)

Definition at line 172 of file cmconfig.cc.

virtual ConfigException::~ConfigException (  )  throw () [inline, virtual]

Definition at line 147 of file cmconfig.h.


Member Function Documentation

const char * ConfigException::what ( void   )  const throw () [virtual]

Reimplemented in ConfigBadFile, and ConfigUnfoundException.

Definition at line 190 of file cmconfig.cc.

References line, and reason.

Referenced by main().

Here is the caller graph for this function:

void ConfigException::set_file ( const string &  f  ) 

Definition at line 176 of file cmconfig.cc.

Referenced by ConfigBadFile::ConfigBadFile(), and Getcap::load_entry().

Here is the caller graph for this function:

void ConfigException::set_line ( const   int  ) 

Definition at line 183 of file cmconfig.cc.

References line.


Member Data Documentation

string ConfigException::reason [protected]

Definition at line 156 of file cmconfig.h.

Referenced by ConfigUnfoundException::what(), and what().

string ConfigException::file [protected]

Definition at line 157 of file cmconfig.h.

int ConfigException::line [protected]

Definition at line 158 of file cmconfig.h.

Referenced by ConfigParseException::ConfigParseException(), set_line(), and what().


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

Generated on Tue May 13 11:32:43 2008 for consmgr by  doxygen 1.5.5