Anope IRC Services  Version 2.0
Public Member Functions
ConfigException Class Reference

#include <config.h>

Inheritance diagram for ConfigException:
Inheritance graph
[legend]
Collaboration diagram for ConfigException:
Collaboration graph
[legend]

Public Member Functions

 ConfigException ()
 
 ConfigException (const Anope::string &message)
 
virtual ~ConfigException () throw ()
 
- Public Member Functions inherited from CoreException
 CoreException ()
 
 CoreException (const Anope::string &message)
 
 CoreException (const Anope::string &message, const Anope::string &src)
 
virtual ~CoreException () throw ()
 
virtual const Anope::stringGetReason () const
 
virtual const Anope::stringGetSource () const
 

Additional Inherited Members

- Protected Attributes inherited from CoreException
Anope::string err
 
Anope::string source
 

Detailed Description

This class can be used on its own to represent an exception, or derived to represent a module-specific exception. When a module whishes to abort, e.g. within a constructor, it should throw an exception using ModuleException or a class derived from ModuleException. If a module throws an exception during its constructor, the module will not be loaded. If this happens, the error message returned by ModuleException::GetReason will be displayed to the user attempting to load the module, or dumped to the console if the ircd is currently loading for the first time.

Definition at line 163 of file config.h.

Constructor & Destructor Documentation

ConfigException::ConfigException ( )
inline

Default constructor, just uses the error mesage 'Config threw an exception'.

Definition at line 168 of file config.h.

ConfigException::ConfigException ( const Anope::string message)
inline

This constructor can be used to specify an error message before throwing.

Definition at line 171 of file config.h.

virtual ConfigException::~ConfigException ( )
throw (
)
inlinevirtual

This destructor solves world hunger, cancels the world debt, and causes the world to end. Actually no, it does nothing. Never mind.

Exceptions
Nothing!

Definition at line 176 of file config.h.


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