Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
This commit is contained in:
@@ -572,7 +572,7 @@ PyObject* TopoShapePy::__getstate__(PyObject *args) {
|
||||
|
||||
PyObject* TopoShapePy::__setstate__(PyObject *args) {
|
||||
if (! getTopoShapePtr()) {
|
||||
PyErr_SetString(Base::BaseExceptionFreeCADError,"no c++ object");
|
||||
PyErr_SetString(Base::PyExc_FC_GeneralError,"no c++ object");
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
@@ -2926,7 +2926,7 @@ Py::String TopoShapePy::getShapeType(void) const
|
||||
{
|
||||
TopoDS_Shape sh = getTopoShapePtr()->getShape();
|
||||
if (sh.IsNull())
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError, "cannot determine type of null shape");
|
||||
throw Py::Exception(Base::PyExc_FC_GeneralError, "cannot determine type of null shape");
|
||||
TopAbs_ShapeEnum type = sh.ShapeType();
|
||||
std::string name;
|
||||
switch (type)
|
||||
@@ -2967,7 +2967,7 @@ Py::String TopoShapePy::getOrientation(void) const
|
||||
{
|
||||
TopoDS_Shape sh = getTopoShapePtr()->getShape();
|
||||
if (sh.IsNull())
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError, "cannot determine orientation of null shape");
|
||||
throw Py::Exception(Base::PyExc_FC_GeneralError, "cannot determine orientation of null shape");
|
||||
TopAbs_Orientation type = sh.Orientation();
|
||||
std::string name;
|
||||
switch (type)
|
||||
@@ -2993,7 +2993,7 @@ void TopoShapePy::setOrientation(Py::String arg)
|
||||
{
|
||||
TopoDS_Shape sh = getTopoShapePtr()->getShape();
|
||||
if (sh.IsNull())
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError, "cannot determine orientation of null shape");
|
||||
throw Py::Exception(Base::PyExc_FC_GeneralError, "cannot determine orientation of null shape");
|
||||
std::string name = (std::string)arg;
|
||||
TopAbs_Orientation type;
|
||||
if (name == "Forward") {
|
||||
|
||||
Reference in New Issue
Block a user