DiscussionsIssue archiveOther usage issues

Archived discussion

Is your code exception safe?

Other usage issuesFri, 09/19/2014 - 15:261 reply

Browse this forum
QuestionAuthor

I have issues with some exceptions not being possible to catch with try/catch. It looks like the code is throwing exceptions AFTER another exception has been thrown. Note that this kind of behavior is prohibited by C++ standard.

I am using this class:

BRepOffsetAPI_MakeOffset

calling Perform() leads to program termination, and adding try {} catch(...) {} does nothing.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

[EDIT] " Note that this kind of behavior is prohibited by C++ standard."

Technically, this is not prohibited. But doing so leads to program termination. Which is unacceptable. A library code must not terminate the users of its code.