Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of assert failures in event handlers #4392

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 11, 2023

Identify the Bug or Feature request

Addresses #4391

Description of the Change

This adds catch blocks for AssertFunctionException whereever AbortFunctionException is being caught. There were only two remaining places, which were in the event macro code.

Also AssertFunctionException no longer extends ParameterException as it is not necessarily an indicator of parameter validation. No functional difference as ParameterExecption is not caught exlicitly anywhere.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Fixed assertions in event macros so that they function the same as in other contexts when failing.

This change is Reviewable

This adds `catch` blocks for `AssertFunctionException` whereever `AbortFunctionException` is being caught. There were
only two remaining places, which were in the event handling code.

Also `AssertFunctionException` no longer extends `ParameterException` as it is not necessarily an indicator of parameter
validation. No functional difference as `ParameterExecption` is not caught exlicitly anywhere.
@cwisniew cwisniew added this pull request to the merge queue Nov 15, 2023
@cwisniew cwisniew added the bug label Nov 15, 2023
Merged via the queue into RPTools:develop with commit 0b41d65 Nov 15, 2023
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4391-assert-in-events branch November 16, 2023 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

3 participants