75562073bf8ce252b3e020f94cca2ccd3ded0b25
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / stdexcept
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * string (header)
6  * - C++'s String type
7  */
8 #ifndef _LIBCXX_STDEXCEPT_
9 #define _LIBCXX_STDEXCEPT_
10
11 #include "exception"
12 #include "string"
13
14 namespace std {
15
16 namespace _bits {
17
18 class str_except:
19         public exception
20 {
21         ::std::string   m_str;
22 public:
23         explicit str_except(const string& what_arg);
24         virtual ~str_except() noexcept;
25         str_except& operator= (const str_except& e) noexcept;
26         virtual const char* what() const noexcept;
27 };
28
29 } // namespace _bits
30
31 class logic_error:
32         public _bits::str_except
33 {
34 public:
35         explicit logic_error(const string& what_arg);
36 };
37
38 class runtime_error:
39         public _bits::str_except
40 {
41 public:
42         explicit runtime_error(const string& what_arg);
43 };
44
45 class out_of_range:
46         public logic_error
47 {
48 public:
49         explicit out_of_range(const string& what_arg);
50 };
51
52 class length_error:
53         public logic_error
54 {
55 public:
56         explicit length_error(const string& what_arg);
57 };
58
59 };      // namespace std
60
61 #endif
62
63 // vim: ft=cpp
64

UCC git Repository :: git.ucc.asn.au