prepare for PyCXX 7.0
This commit is contained in:
@@ -148,7 +148,7 @@ void ArcOfConicPy::setAxis(Py::Object arg)
|
||||
conic->SetAxis(axis);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
throw Py::Exception("cannot set axis");
|
||||
throw Py::RuntimeError("cannot set axis");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ void ArcOfConicPy::setXAxis(Py::Object arg)
|
||||
conic->SetPosition(pos);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
throw Py::Exception("cannot set X axis");
|
||||
throw Py::RuntimeError("cannot set X axis");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ void ArcOfConicPy::setYAxis(Py::Object arg)
|
||||
conic->SetPosition(pos);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
throw Py::Exception("cannot set Y axis");
|
||||
throw Py::RuntimeError("cannot set Y axis");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user