|
|||
|
|||
|
#include <base.h>
Inheritance diagram for CoreException:


Public Member Functions | |
| CoreException () | |
| Default constructor, just uses the error mesage 'Core threw an exception'. | |
| CoreException (const std::string &message) | |
| This constructor can be used to specify an error message before throwing. | |
| CoreException (const std::string &message, const std::string &src) | |
| This constructor can be used to specify an error message before throwing, and to specify the source of the exception. | |
| virtual | ~CoreException () throw () |
| This destructor solves world hunger, cancels the world debt, and causes the world to end. | |
| virtual const char * | GetReason () |
| Returns the reason for the exception. | |
| virtual const char * | GetSource () |
Protected Attributes | |
| const std::string | err |
| Holds the error message to be displayed. | |
| const std::string | source |
| Source of the 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 224 of file base.h.
|
|
Default constructor, just uses the error mesage 'Core threw an exception'.
|
|
|
This constructor can be used to specify an error message before throwing.
|
|
||||||||||||
|
This constructor can be used to specify an error message before throwing, and to specify the source of the exception.
|
|
|
This destructor solves world hunger, cancels the world debt, and causes the world to end. Actually no, it does nothing. Never mind.
|
|
|
Returns the reason for the exception. The module should probably put something informative here as the user will see this upon failure. Definition at line 252 of file base.h. Referenced by ModuleFilter::AddFilter(), TreeSocket::AddLine(), UserManager::AddUser(), CullList::Apply(), BufferedSocket::Close(), ModuleSpanningTree::ConnectServer(), TestSuite::DoThreadTests(), BufferedSocket::FlushWriteBuffer(), CommandRLine::Handle(), BufferedSocket::InternalMarkConnected(), ModuleManager::Load(), UserResolver::OnLookupComplete(), ModuleSSLOpenSSL::OnRehash(), ModuleSSLGnuTLS::OnRehash(), ModuleIdent::OnUserRegister(), BufferedSocket::Read(), ServerConfig::Read(), ModuleFilter::ReadFilters(), User::StartDNSLookup(), and User::Write(). |
|
|
Definition at line 257 of file base.h. Referenced by UserManager::AddUser(), CullList::Apply(), BufferedSocket::Close(), BufferedSocket::FlushWriteBuffer(), BufferedSocket::InternalMarkConnected(), BufferedSocket::Read(), and User::Write(). |
|
|
Holds the error message to be displayed.
|
|
|
Source of the exception.
|