Port to occ7.2:

+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
This commit is contained in:
wmayer
2017-09-01 16:27:46 +02:00
parent 5aa60a4d3b
commit 949c86d364
96 changed files with 1497 additions and 1714 deletions
@@ -346,13 +346,13 @@ App::DocumentObjectExecReturn *Transformed::execute(void)
}
support = current; // Use result of this operation for fuse/cut of next original
}
} catch (Standard_Failure) {
} catch (Standard_Failure& e) {
// Note: Ignoring this failure is probably pointless because if the intersection check fails, the later
// fuse operation of the transformation result will also fail
Handle(Standard_Failure) e = Standard_Failure::Caught();
std::string msg("Transformation: Intersection check failed");
if (e->GetMessageString() != NULL)
msg += std::string(": '") + e->GetMessageString() + "'";
if (e.GetMessageString() != NULL)
msg += std::string(": '") + e.GetMessageString() + "'";
return new App::DocumentObjectExecReturn(msg.c_str());
}
}