Skip to main content

Subprocess to call on unhandled error

Send report if a Process fails unexpectedly

Ossi Galkin avatar
Written by Ossi Galkin
Updated over a year ago

If you want to e.g. send a report for any unexpected errors in your Process, you can configure a Subprocess that gets called if an error is thrown but is not handled in the Process.

Please note that any return value from the Subprocess called on an unhandled error will be ignored. You can only use it to e.g. 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 shapes in a Scope, add a custom error handler to it, and send your custom error from there.ย 

You can configure the Subprocess to call on an unhandled error from the Process settings side panel.ย 

Also note 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, you must use the #var.error reference.

Did this answer your question?