Custom Error Thrown Is Being Wrapped in "Error invoking Supplier" exception

Description

A custom error, in certain circumstances, ends up being wrapped in the Supplier error thrown in src/main/java/ortus/boxlang/runtime/interop/proxies/Supplier.java. This causes custom type catch blocks to fail and the error message ends up being Error invoking Supplier

Currently all of QB’s RecordNotFound exceptions are being swallowed this way:

I’m not sure why this is hitting Supplier, in the first place, but here’s example code within a function that causes this is:

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created February 26, 2025 at 4:37 PM
Updated February 26, 2025 at 5:03 PM
Resolved February 26, 2025 at 5:03 PM