]> git.tdb.fi Git - libs/core.git/blob - source/core/except.h
Add move semantics to Variant
[libs/core.git] / source / core / except.h
1 #ifndef MSP_CORE_EXCEPT_H_
2 #define MSP_CORE_EXCEPT_H_
3
4 #include <stdexcept>
5 #include "mspcore_api.h"
6
7 namespace Msp {
8
9 class MSPCORE_API invalid_state: public std::logic_error
10 {
11 public:
12         invalid_state(const std::string &w): logic_error(w) { }
13 };
14
15
16 class MSPCORE_API already_called: public invalid_state
17 {
18 public:
19         already_called(const std::string &w): invalid_state(w) { }
20 };
21
22
23 class MSPCORE_API unsupported: public std::logic_error
24 {
25 public:
26         unsupported(const std::string &w): logic_error(w) { }
27 };
28
29
30 class MSPCORE_API internal_error: public std::logic_error
31 {
32 public:
33         internal_error(const std::string &w): logic_error(w) { }
34 };
35
36 } // namespace Msp;
37
38 #endif