Add std::bad_cast to std_except.i
This exception occurs when dynamic_cast<T&> fails. Fixes #783.
This commit is contained in:
parent
b138f054e5
commit
2dc87d7485
9 changed files with 12 additions and 0 deletions
|
|
@ -40,6 +40,7 @@
|
|||
%enddef
|
||||
|
||||
namespace std {
|
||||
%std_exception_map(bad_cast, SWIG_TypeError);
|
||||
%std_exception_map(bad_exception, SWIG_SystemError);
|
||||
%std_exception_map(domain_error, SWIG_ValueError);
|
||||
%std_exception_map(exception, SWIG_SystemError);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue