X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fstdexcept;fp=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fstdexcept;h=75562073bf8ce252b3e020f94cca2ccd3ded0b25;hp=0000000000000000000000000000000000000000;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hpb=67a7fe2bb79eceaf10c572a99bd8345c4e81cf5b diff --git a/Usermode/Libraries/libc++.so_src/include_exp/stdexcept b/Usermode/Libraries/libc++.so_src/include_exp/stdexcept new file mode 100644 index 00000000..75562073 --- /dev/null +++ b/Usermode/Libraries/libc++.so_src/include_exp/stdexcept @@ -0,0 +1,64 @@ +/* + * Acess2 C++ Library + * - By John Hodge (thePowersGang) + * + * string (header) + * - C++'s String type + */ +#ifndef _LIBCXX_STDEXCEPT_ +#define _LIBCXX_STDEXCEPT_ + +#include "exception" +#include "string" + +namespace std { + +namespace _bits { + +class str_except: + public exception +{ + ::std::string m_str; +public: + explicit str_except(const string& what_arg); + virtual ~str_except() noexcept; + str_except& operator= (const str_except& e) noexcept; + virtual const char* what() const noexcept; +}; + +} // namespace _bits + +class logic_error: + public _bits::str_except +{ +public: + explicit logic_error(const string& what_arg); +}; + +class runtime_error: + public _bits::str_except +{ +public: + explicit runtime_error(const string& what_arg); +}; + +class out_of_range: + public logic_error +{ +public: + explicit out_of_range(const string& what_arg); +}; + +class length_error: + public logic_error +{ +public: + explicit length_error(const string& what_arg); +}; + +}; // namespace std + +#endif + +// vim: ft=cpp +