Debian Codegraph @

headers/stdexcept

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_STDEXCEPT_H
17 #define CPPREFERENCE_STDEXCEPT_H
18
19 #include <exception>
20
21 namespace std {
22
23 class logic_error : public exception {
24 public:
25 explicit logic_error(const string& what_arg);
26 #if CPPREFERENCE_STDVER>= 2011
27 explicit logic_error(const char* what_arg);
28 #endif
29 };
30
31 class domain_error : public logic_error {
32 public:
33 explicit domain_error(const string& what_arg);
34 #if CPPREFERENCE_STDVER>= 2011
35 explicit domain_error(const char* what_arg);
36 #endif
37 };
38
39
40 class invalid_argument : public logic_error {
41 public:
42 explicit invalid_argument(const string& what_arg);
43 #if CPPREFERENCE_STDVER>= 2011
44 explicit invalid_argument(const char* what_arg);
45 #endif
46 };
47
48
49 class length_error : public logic_error {
50 public:
51 explicit length_error(const string& what_arg);
52 #if CPPREFERENCE_STDVER>= 2011
53 explicit length_error(const char* what_arg);
54 #endif
55 };
56
57
58 class out_of_range : public logic_error {
59 public:
60 explicit out_of_range(const string& what_arg);
61 #if CPPREFERENCE_STDVER>= 2011
62 explicit out_of_range(const char* what_arg);
63 #endif
64 };
65
66 class runtime_error : public exception {
67 public:
68 explicit runtime_error(const string& what_arg);
69 #if CPPREFERENCE_STDVER>= 2011
70 explicit runtime_error(const char* what_arg);
71 #endif
72 };
73
74 class range_error : public runtime_error {
75 public:
76 explicit range_error(const string& what_arg);
77 #if CPPREFERENCE_STDVER>= 2011
78 explicit range_error(const char* what_arg);
79 #endif
80 };
81
82 class overflow_error : public runtime_error {
83 public:
84 explicit overflow_error(const string& what_arg);
85 #if CPPREFERENCE_STDVER>= 2011
86 explicit overflow_error(const char* what_arg);
87 #endif
88 };
89
90 class underflow_error : public runtime_error {
91 public:
92 explicit underflow_error(const string& what_arg);
93 #if CPPREFERENCE_STDVER>= 2011
94 explicit underflow_error(const char* what_arg);
95 #endif
96 };
97
98 } // namespace std
99
100 #endif // CPPREFERENCE_STDEXCEPT_H