Register a handler to be invoked on workflow, activity or runtime errors.
Function called with the error payload.
Register a handler to be invoked on workflow, activity or runtime errors.