mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Forgot to commit this?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3247 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
1328556e36
commit
b1fcb6a770
@ -289,12 +289,15 @@ class ExtMode : public classbase
|
||||
|
||||
class ModuleException
|
||||
{
|
||||
private:
|
||||
std::string err;
|
||||
public:
|
||||
ModuleException() {};
|
||||
ModuleException() : err("Module threw an exception") {}
|
||||
ModuleException(std::string message) : err(message) {}
|
||||
virtual ~ModuleException() {};
|
||||
virtual char *GetReason()
|
||||
{
|
||||
return "Module threw an exception";
|
||||
return (char*)err.c_str();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user