annotate lib/swig/swigwin-2.0.11/Lib/std/std_except.i @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 #if defined(SWIGJAVA) || defined(SWIGCSHARP)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 #error "do not use this version of std_except.i"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 #include <stdexcept>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 #if defined(SWIG_STD_EXCEPTIONS_AS_CLASSES)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 namespace std {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 struct exception
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 virtual ~exception() throw();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 virtual const char* what() const throw();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 struct bad_exception : exception
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 struct logic_error : exception
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 logic_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 struct domain_error : logic_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 domain_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 struct invalid_argument : logic_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 invalid_argument(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 struct length_error : logic_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 length_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 struct out_of_range : logic_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 out_of_range(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 struct runtime_error : exception
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 runtime_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 struct range_error : runtime_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 range_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 struct overflow_error : runtime_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 overflow_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 struct underflow_error : runtime_error
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 underflow_error(const string& msg);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 #endif