]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/except.h
Decorate things which should be visible to users of the library
[libs/datafile.git] / source / except.h
index 8357c7e33b8ce5d25f9d03c4557869cd52dab48e..533072e8ddcf3fe5fdb3b592d250c4099c43b80c 100644 (file)
@@ -4,11 +4,12 @@
 #include <stdexcept>
 #include <string>
 #include <typeinfo>
+#include "mspdatafile_api.h"
 
 namespace Msp {
 namespace DataFile {
 
-class data_error: public std::runtime_error
+class MSPDATAFILE_API data_error: public std::runtime_error
 {
 private:
        std::string source;
@@ -28,7 +29,7 @@ private:
 };
 
 
-class parse_error: public std::runtime_error
+class MSPDATAFILE_API parse_error: public std::runtime_error
 {
 public:
        parse_error(const std::string &);
@@ -36,7 +37,7 @@ public:
 };
 
 
-class syntax_error: public std::runtime_error
+class MSPDATAFILE_API syntax_error: public std::runtime_error
 {
 public:
        syntax_error(const std::string &t);
@@ -44,7 +45,7 @@ public:
 };
 
 
-class bad_definition: public std::runtime_error
+class MSPDATAFILE_API bad_definition: public std::runtime_error
 {
 public:
        bad_definition(const std::string &w);
@@ -52,7 +53,7 @@ public:
 };
 
 
-class nesting_error: public std::logic_error
+class MSPDATAFILE_API nesting_error: public std::logic_error
 {
 public:
        nesting_error(const std::string &);
@@ -60,7 +61,7 @@ public:
 };
 
 
-class unknown_keyword: public std::runtime_error
+class MSPDATAFILE_API unknown_keyword: public std::runtime_error
 {
 public:
        unknown_keyword(const std::string &);
@@ -68,7 +69,7 @@ public:
 };
 
 
-class invalid_signature: public std::runtime_error
+class MSPDATAFILE_API invalid_signature: public std::runtime_error
 {
 public:
        invalid_signature(const std::string &, const std::string &);
@@ -76,7 +77,7 @@ public:
 };
 
 
-class no_collection: public std::runtime_error
+class MSPDATAFILE_API no_collection: public std::runtime_error
 {
 public:
        no_collection(const std::type_info &);