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.
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 beingError 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: