Is your code exception safe?

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.

Timur's picture

[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.