summaryrefslogtreecommitdiff
path: root/include/configreader.h
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-17 20:17:52 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-12-17 20:17:52 +0000
commitad7b5bdd30405b92042c4a1872175be80d8d111f (patch)
tree8cdcd0509d935c1606f14a3f89f407897e2bc3d0 /include/configreader.h
parentc4a8cc7e2f3890b8d82051c89748bea80350e8d4 (diff)
A few GCC 3.4.x and MSVC++ warning fixes.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1839 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/include/configreader.h b/include/configreader.h
index d7786e11d..0cd1bf362 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -282,9 +282,6 @@ class ServerConfig
* recursively included.
*/
std::vector<std::string> include_stack;
- /** Process an include directive
- */
- bool DoInclude(ConfigDataHash &, const std::string &, std::ostringstream &);
/** Check that there is only one of each configuration item
*/
bool CheckOnce(const char *);
@@ -381,31 +378,20 @@ class ServerConfig
* 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.
*/
-class ConfigException : public std::exception
+class ConfigException : public CoreException
{
- protected:
- /** Holds the error message to be displayed
- */
- const std::string err;
public:
/** Default constructor, just uses the error mesage 'Config threw an exception'.
*/
- ConfigException() : err("Config threw an exception") { }
+ ConfigException() : CoreException("Config threw an exception", "Config Parser") {}
/** This constructor can be used to specify an error message before throwing.
*/
- ConfigException(const std::string &message) : err(message) {}
+ ConfigException(const std::string &message) : CoreException(message, "Config Parser") {}
/** This destructor solves world hunger, cancels the world debt, and causes the world to end.
* Actually no, it does nothing. Never mind.
* @throws Nothing!
*/
virtual ~ConfigException() throw() { };
- /** Returns the reason for the exception.
- * The module should probably put something informative here as the user will see this upon failure.
- */
- virtual const char *GetReason()
- {
- return err.c_str();
- }
};
#define CONF_NO_ERROR 0x000000