Catch "key was not found" from exerciseByKey

Hi,

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

That’s not possible. You can do a lookupByKey in some cases instead. Keep in mind that this has different authorization rules though.

1 Like

@cocreature I was wondering whether it’s possible to catch a failed fetchByKey because the key was not found.

Thanks
Jose

No both fetchByKey and exerciseByKey cannot be caught.

1 Like