@@ -485,7 +485,7 @@ Func::map(const Py::Tuple &args) {
485485 try {
486486 xout = this ->operator ()(xin);
487487 }
488- catch (std::domain_error &err ) {
488+ catch (... ) {
489489 throw Py::ValueError (" Domain error on Func::map" );
490490 }
491491
@@ -517,7 +517,7 @@ FuncXY::map(const Py::Tuple &args) {
517517 try {
518518 xy = this ->operator ()(xin, yin);
519519 }
520- catch (std::domain_error &err ) {
520+ catch (... ) {
521521 throw Py::ValueError (" Domain error on FuncXY nonlinear transform" );
522522 }
523523
@@ -679,7 +679,7 @@ Transformation::inverse_xy_tup(const Py::Tuple & args) {
679679 try {
680680 if (!_frozen) eval_scalars ();
681681 }
682- catch (std::domain_error &err ) {
682+ catch (... ) {
683683 throw Py::ValueError (" Domain error on invser_xy_tup" );
684684 }
685685
@@ -700,7 +700,7 @@ Transformation::xy_tup(const Py::Tuple & args) {
700700 try {
701701 if (!_frozen) eval_scalars ();
702702 }
703- catch (std::domain_error &err ) {
703+ catch (... ) {
704704 throw Py::ValueError (" Domain error on nonlinear transform" );
705705 }
706706
@@ -714,7 +714,7 @@ Transformation::xy_tup(const Py::Tuple & args) {
714714 try {
715715 this ->operator ()(x, y);
716716 }
717- catch (std::domain_error &err ) {
717+ catch (... ) {
718718 throw Py::ValueError (" Domain error on nTransformation::xy_tup operator()(x,y)" );
719719 }
720720
@@ -741,7 +741,7 @@ Transformation::seq_x_y(const Py::Tuple & args) {
741741 try {
742742 if (!_frozen) eval_scalars ();
743743 }
744- catch (std::domain_error &err ) {
744+ catch (... ) {
745745 throw Py::ValueError (" Domain error on Transformation::seq_x_y" );
746746 }
747747
@@ -756,7 +756,7 @@ Transformation::seq_x_y(const Py::Tuple & args) {
756756 try {
757757 this ->operator ()(thisx, thisy);
758758 }
759- catch (std::domain_error &err ) {
759+ catch (... ) {
760760 throw Py::ValueError (" Domain error on Transformation::seq_x_y operator()(thisx, thisy)" );
761761 }
762762
@@ -801,7 +801,7 @@ Transformation::numerix_x_y(const Py::Tuple & args) {
801801 try {
802802 if (!_frozen) eval_scalars ();
803803 }
804- catch (std::domain_error &err ) {
804+ catch (... ) {
805805 throw Py::ValueError (" Domain error on Transformation::numerix_x_y" );
806806 }
807807
@@ -832,7 +832,7 @@ Transformation::numerix_x_y(const Py::Tuple & args) {
832832 try {
833833 this ->operator ()(thisx, thisy);
834834 }
835- catch (std::domain_error &err ) {
835+ catch (... ) {
836836 throw Py::ValueError (" Domain error on Transformation::numerix_x_y" );
837837 }
838838
@@ -904,7 +904,7 @@ Transformation::nonlinear_only_numerix(const Py::Tuple & args) {
904904 try {
905905 this ->nonlinear_only_api (&thisx, &thisy);
906906 }
907- catch (std::domain_error &err ) {
907+ catch (... ) {
908908 throw Py::ValueError (" Domain error on this->nonlinear_only_api(&thisx, &thisy) in Transformation::nonlinear_only_numerix" );
909909 }
910910
@@ -936,7 +936,7 @@ Transformation::seq_xy_tups(const Py::Tuple & args) {
936936 try {
937937 if (!_frozen) eval_scalars ();
938938 }
939- catch (std::domain_error &err ) {
939+ catch (... ) {
940940 throw Py::ValueError (" Domain error on Transformation::seq_xy_tups" );
941941 }
942942
@@ -954,7 +954,7 @@ Transformation::seq_xy_tups(const Py::Tuple & args) {
954954 try {
955955 this ->operator ()(thisx, thisy);
956956 }
957- catch (std::domain_error &err ) {
957+ catch (... ) {
958958 throw Py::ValueError (" Domain error on nonlinear Transformation::seq_xy_tups operator()(thisx, thisy)" );
959959 }
960960
@@ -1515,7 +1515,7 @@ Affine::deepcopy(const Py::Tuple &args) {
15151515 try {
15161516 eval_scalars ();
15171517 }
1518- catch (std::domain_error &err ) {
1518+ catch (... ) {
15191519 throw Py::ValueError (" Domain error on Affine deepcopy" );
15201520 }
15211521
@@ -1824,7 +1824,7 @@ Transformation::init_type()
18241824
18251825 add_varargs_method (" get_funcx" , &Transformation::get_funcx, " get_funcx(); return the Func instance on x\n " );
18261826 add_varargs_method (" get_funcy" , &Transformation::get_funcy, " get_funcy(); return the Func instance on y\n " );
1827-
1827+
18281828 add_varargs_method (" set_funcx" , &Transformation::set_funcx, " set_funcx(); set the Func instance on x\n " );
18291829 add_varargs_method (" set_funcy" , &Transformation::set_funcy, " set_funcy(); set the Func instance on y\n " );
18301830
@@ -1902,3 +1902,4 @@ DL_EXPORT(void)
19021902 d[" IDENTITY" ] = Py::Int ((int )Func::IDENTITY);
19031903 d[" POLAR" ] = Py::Int ((int )FuncXY::POLAR);;
19041904};
1905+
0 commit comments