prepare for PyCXX 7.0

This commit is contained in:
wmayer
2018-04-18 19:20:50 +02:00
parent 08286c407e
commit 99ec96acd5
36 changed files with 226 additions and 239 deletions

View File

@@ -151,7 +151,7 @@ void ConicPy::setAxis(Py::Object arg)
conic->SetAxis(axis);
}
catch (Standard_Failure) {
throw Py::Exception("cannot set axis");
throw Py::RuntimeError("cannot set axis");
}
}
@@ -187,7 +187,7 @@ void ConicPy::setXAxis(Py::Object arg)
conic->SetPosition(pos);
}
catch (Standard_Failure) {
throw Py::Exception("cannot set X axis");
throw Py::RuntimeError("cannot set X axis");
}
}
@@ -223,7 +223,7 @@ void ConicPy::setYAxis(Py::Object arg)
conic->SetPosition(pos);
}
catch (Standard_Failure) {
throw Py::Exception("cannot set Y axis");
throw Py::RuntimeError("cannot set Y axis");
}
}