fix: More consistent rejection handling in getOnce functions.

This MR makes the rejection of errors in the getOnce functions behave more consistently.

JIRA tickets: https://tasks.opencraft.com/browse/BB-9075

Testing instructions:

  1. Run the tests manually or observe the CI for regressions.

Author notes and concerns:

I could not find a way to test this in the current testing environment, because it involves creating an unhandled (and unhandleable) exception. If you can think of a way to do it, please let me know.

Merge request reports

Loading