Catch "key was not found" from exerciseByKey
App Development4 posts247 views3 likesLast activity Mar 2023
JV
jvelasco.intellecteuOP
Mar 2023Hi,
I wonder whether it’s possible to catch a failed exerciseByKey because the key was not found.
Attempt to fetch or exercise by key but no contract with that key was found.
Thanks!
Jose
CO
cocreature
Mar 2023That’s not possible. You can do a lookupByKey in some cases instead. Keep in mind that this has different authorization rules though.
JV
jvelasco.intellecteu
Mar 2023@cocreature I was wondering whether it’s possible to catch a failed fetchByKey because the key was not found.
Thanks
Jose
CO
cocreature
Mar 2023No both fetchByKey and exerciseByKey cannot be caught.