If you want to send a report for any unexpected errors in your Process, you can configure a Subprocess that gets called if an error is thrown but not handled.
Note that any return value from the Subprocess called on an unhandled error will be ignored. You can only use it, for example, to send an email about the error, not to return a custom error response to the caller of the main Process. If you want to return a custom error response, you need to wrap your Process Elements in a Scope, add a custom error handler to it, and send your custom error from there.
Also note that you need to explicitly pass the error and any other details as parameters to the Subprocess. To pass the exception details to the error handling Subprocess, use the #var.error reference.
Subprocess to call on an unhandled error can be configured on the Process settings side panel.
The next article is Example on How to use Scope.