1
1
%include <std/std_except.i>
2
%include <std_string.i>
12
Mark all of std exception classes as "exception classes" via
13
the "exceptionclass" feature.
15
If needed, you can disable it by using %noexceptionclass.
17
%exceptionclass exception;
18
%exceptionclass bad_exception;
19
%exceptionclass logic_error;
20
%exceptionclass domain_error;
21
%exceptionclass invalid_argument;
22
%exceptionclass length_error;
23
%exceptionclass out_of_range;
24
%exceptionclass runtime_error;
25
%exceptionclass range_error;
26
%exceptionclass overflow_error;
27
%exceptionclass underflow_error;
34
virtual ~exception() throw();
35
virtual const char* what() const throw();
38
struct bad_exception : exception
42
struct logic_error : exception
44
logic_error(const string& msg);
47
struct domain_error : logic_error
49
domain_error(const string& msg);
52
struct invalid_argument : logic_error
54
invalid_argument(const string& msg);
57
struct length_error : logic_error
59
length_error(const string& msg);
62
struct out_of_range : logic_error
64
out_of_range(const string& msg);
67
struct runtime_error : exception
69
runtime_error(const string& msg);
72
struct range_error : runtime_error
74
range_error(const string& msg);
77
struct overflow_error : runtime_error
79
overflow_error(const string& msg);
82
struct underflow_error : runtime_error
84
underflow_error(const string& msg);