prepare for PyCXX 7.0
This commit is contained in:
@@ -163,7 +163,7 @@ void Line2dPy::setLocation(Py::Object arg)
|
||||
try {
|
||||
GCE2d_MakeLine ms(pnt, dir);
|
||||
if (!ms.IsDone()) {
|
||||
throw Py::Exception(gce_ErrorStatusText(ms.Status()));
|
||||
throw Py::RuntimeError(gce_ErrorStatusText(ms.Status()));
|
||||
}
|
||||
|
||||
// get Geom_Line of line
|
||||
@@ -171,8 +171,7 @@ void Line2dPy::setLocation(Py::Object arg)
|
||||
this_line->SetLin2d(that_line->Lin2d());
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
throw Py::Exception(e.GetMessageString());
|
||||
throw Py::RuntimeError(e.GetMessageString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,7 +217,7 @@ void Line2dPy::setDirection(Py::Object arg)
|
||||
try {
|
||||
GCE2d_MakeLine ms(pnt, dir);
|
||||
if (!ms.IsDone()) {
|
||||
throw Py::Exception(gce_ErrorStatusText(ms.Status()));
|
||||
throw Py::RuntimeError(gce_ErrorStatusText(ms.Status()));
|
||||
}
|
||||
|
||||
// get Geom_Line of line
|
||||
@@ -226,8 +225,7 @@ void Line2dPy::setDirection(Py::Object arg)
|
||||
this_line->SetLin2d(that_line->Lin2d());
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
throw Py::Exception(e.GetMessageString());
|
||||
throw Py::RuntimeError(e.GetMessageString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user