Is there a way to catch errors?

From the documentation I see that both these nodes have On Failure execution pins and tha Response should contain info about the error


This pattern is great because we can build a layer that ensures robustness around the plugin. However I think these nodes are not used during normal character conversation and are only there to offer interactivity to the user.

Is there a way (events or similar) to receive information about errors when they occur? Errors like this for example:

Hello @donq,

There is an Event called “On Failure”, you can use it.

1 Like

But that event doesn’t offer any context about the type of failure, how do I retrieve what failed?

This particular event is a catch-all for any failure, unlike others that are tied to specific features. If you’d like to inform your users, we recommend showing a general message in the chatbox when this event triggers something like “An issue occurred, please try again.” This is similar to how we handle it on our end.

For other people reading this in the future. We have wrapped the error handling in a system that attempts to deduce the type of error by the current state of the unreal sdk and performs different kind of actions based on the type of error

1 Like