Notcurses 3.0.13
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
_exceptions.hh
Go to the documentation of this file.
1#ifndef __NCPP_EXCEPTIONS_HH
2#define __NCPP_EXCEPTIONS_HH
3
4#include <stdexcept>
5
6#include "_helpers.hh"
7
8namespace ncpp
9{
10 class NCPP_API_EXPORT init_error : public std::logic_error
11 {
12 public:
13 explicit init_error (const std::string& what_arg)
14 : logic_error (what_arg)
15 {}
16
17 explicit init_error (const char* what_arg)
18 : logic_error (what_arg)
19 {}
20 };
21
22 class NCPP_API_EXPORT invalid_state_error : public std::logic_error
23 {
24 public:
25 explicit invalid_state_error (const std::string& what_arg)
26 : logic_error (what_arg)
27 {}
28
29 explicit invalid_state_error (const char* what_arg)
30 : logic_error (what_arg)
31 {}
32 };
33
34 class NCPP_API_EXPORT invalid_argument : public std::invalid_argument
35 {
36 public:
37 explicit invalid_argument (const std::string& what_arg)
38 : std::invalid_argument (what_arg)
39 {}
40
41 explicit invalid_argument (const char* what_arg)
42 : std::invalid_argument (what_arg)
43 {}
44 };
45
46 class NCPP_API_EXPORT call_error : public std::logic_error
47 {
48 public:
49 explicit call_error (const std::string& what_arg)
50 : logic_error (what_arg)
51 {}
52
53 explicit call_error (const char* what_arg)
54 : logic_error (what_arg)
55 {}
56 };
57}
58#endif
#define NCPP_API_EXPORT
Definition _helpers.hh:9
call_error(const std::string &what_arg)
call_error(const char *what_arg)
init_error(const char *what_arg)
init_error(const std::string &what_arg)
invalid_argument(const char *what_arg)
invalid_argument(const std::string &what_arg)
invalid_state_error(const char *what_arg)
invalid_state_error(const std::string &what_arg)