Skip to content

Commit 4618322

Browse files
[SWIG] Wrap much more exceptions
1 parent c0d2844 commit 4618322

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmake/swigEtp1_2Include.i.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ under the License.
127127
try {
128128
$action
129129
}
130-
catch (std::invalid_argument & e) {
130+
catch (std::invalid_argument& e) {
131131
SWIG_exception(SWIG_TypeError,const_cast<char*>(e.what()));
132132
}
133133
catch (std::out_of_range& e) {
134134
SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
135135
}
136-
catch (std::logic_error & e) {
136+
catch (std::logic_error& e) {
137137
SWIG_exception(SWIG_SyntaxError,const_cast<char*>(e.what()));
138138
}
139-
catch (std::runtime_error & e) {
139+
catch (std::exception& e) {
140140
SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
141141
}
142142
catch(...) {
143-
SWIG_exception(SWIG_RuntimeError,"Unknown exception at F2I C++ API level");
143+
SWIG_exception(SWIG_UnknownError,"Unknown exception at FESAPI C++ API level");
144144
}
145145
}
146146

0 commit comments

Comments
 (0)