]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/except.h
Add move semantics to Variant
[libs/core.git] / source / stringcodec / except.h
index 19cb4137079783b8986bd3c41a2def2f6333264b..fc377e0a36bc269be33a500d98ae3427ba5802ef 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_STRINGCODEC_EXCEPT_H_
 
 #include <stdexcept>
+#include <msp/core/mspcore_api.h>
 #include "ustring.h"
 
 namespace Msp {
@@ -10,7 +11,7 @@ namespace StringCodec {
 /**
 Base class for codec errors.
 */
-class codec_error: public std::runtime_error
+class MSPCORE_API codec_error: public std::runtime_error
 {
 public:
        codec_error(const std::string &w): std::runtime_error(w) { }
@@ -20,7 +21,7 @@ public:
 /**
 Thrown when a codec can't encode the requested character.
 */
-class invalid_character: public codec_error
+class MSPCORE_API invalid_character: public codec_error
 {
 public:
        invalid_character(unichar, const std::string &);
@@ -30,7 +31,7 @@ public:
 /**
 Thrown when a codec encounters a byte sequence it can't decode.
 */
-class invalid_sequence: public codec_error
+class MSPCORE_API invalid_sequence: public codec_error
 {
 public:
        invalid_sequence(const std::string::const_iterator &, const std::string::const_iterator &, const std::string &);