Closed Garados007 closed 1 year ago
@t-b @MichaelHuth Ready for review.
Very nice addition!
The assertions work as expected. I do have some questions about the example though ;)
AbortOnRTE
? And if that is the right thing to do the print message should not mention it anymore. INFO("checks if CustomUserFunction returns with no RTE")
CustomUserFunction()
CHECK_NO_RTE()
or?
Whitespace in separate commit would be nice.
👍
But why remove AbortOnRTE?
I forgot to put it back after experimenting.
And I'm wondering why we still need to have the try/catch?
At this part I want to show that the user can now handle RTE and aborts differently. Previously, the user has to add AbortOnRTE
and handle both in the catch
-block.
Fixed it.
These assertions check the current RTE state and create an error if its unexpected. This simplifies the user code to check for RTEs during runtime.
Close #339