summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/anope.h6
-rw-r--r--include/config.h2
-rw-r--r--include/modules.h2
-rw-r--r--include/modules/ldap.h2
-rw-r--r--include/modules/sql.h2
-rw-r--r--include/regexpr.h2
-rw-r--r--include/sockets.h2
7 files changed, 9 insertions, 9 deletions
diff --git a/include/anope.h b/include/anope.h
index 4d7a197e2..fc8d01fba 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -652,7 +652,7 @@ public:
* 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 CoreException : public std::exception
+class CoreExport CoreException : public std::exception
{
protected:
/** Holds the error message to be displayed
@@ -691,7 +691,7 @@ public:
}
};
-class ModuleException : public CoreException
+class CoreExport ModuleException : public CoreException
{
public:
/** Default constructor, just uses the error message 'Module threw an exception'.
@@ -708,7 +708,7 @@ public:
virtual ~ModuleException() noexcept = default;
};
-class ConvertException : public CoreException
+class CoreExport ConvertException : public CoreException
{
public:
ConvertException(const Anope::string &reason = "") : CoreException(reason) { }
diff --git a/include/config.h b/include/config.h
index cc472faa7..7a032d7e9 100644
--- a/include/config.h
+++ b/include/config.h
@@ -171,7 +171,7 @@ namespace Configuration
* 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 CoreException
+class CoreExport ConfigException : public CoreException
{
public:
/** Default constructor, just uses the error message 'Config threw an exception'.
diff --git a/include/modules.h b/include/modules.h
index b32847487..94bde45aa 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -196,7 +196,7 @@ public:
int GetPatch() const;
};
-class NotImplementedException : public CoreException { };
+class CoreExport NotImplementedException : public CoreException { };
/** Every module in Anope is actually a class.
*/
diff --git a/include/modules/ldap.h b/include/modules/ldap.h
index 210579db4..b1589a18c 100644
--- a/include/modules/ldap.h
+++ b/include/modules/ldap.h
@@ -8,7 +8,7 @@
#pragma once
-class LDAPException : public ModuleException
+class CoreExport LDAPException : public ModuleException
{
public:
LDAPException(const Anope::string &reason) : ModuleException(reason) { }
diff --git a/include/modules/sql.h b/include/modules/sql.h
index 827dd3051..8eaf56c9a 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -81,7 +81,7 @@ namespace SQL
/** A SQL exception, can be thrown at various points
*/
- class Exception : public ModuleException
+ class CoreExport Exception : public ModuleException
{
public:
Exception(const Anope::string &reason) : ModuleException(reason) { }
diff --git a/include/regexpr.h b/include/regexpr.h
index 2b653ab43..fdb0cce50 100644
--- a/include/regexpr.h
+++ b/include/regexpr.h
@@ -15,7 +15,7 @@
#include "anope.h"
#include "service.h"
-class RegexException : public CoreException
+class CoreExport RegexException : public CoreException
{
public:
RegexException(const Anope::string &reason = "") : CoreException(reason) { }
diff --git a/include/sockets.h b/include/sockets.h
index d90a52f91..fc10fec4e 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -126,7 +126,7 @@ public:
};
};
-class SocketException : public CoreException
+class CoreExport SocketException : public CoreException
{
public:
/** Constructor for socket exceptions