Skip to content

IFCOS C++ Internals - Debugging Assertions and Numeric Tolerances #3916

Answered by aothms
RickBrice asked this question in Q&A
Discussion options

You must be logged in to vote

I already made comment on the PR before seeing that. We indeed have Logger::Warning, Logger::Error or raise an exception. I would not use assert() because typically in release builds they simply disappear or generally don't result in a nice experience (especially for windows users, I think on linux you get a bit more informative output from them as an enduser).

I would say:

  • raise exception. no point in continuing evaluation of this instance, depending on how the evaluation is called, the exception might be caught granularly or globally in which case evaluation skips to the next product. Logging is automatic.
  • Logger::Error. over time this became the severity to log issues on internal erro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RickBrice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants