Skip to main content

Error Handling - Temporal Nexus

View Markdown

Nexus Operations can return errors for a caller Workflow to handle. Errors from an asynchronous Operation's underlying Workflow propagate back to the caller.

Errors in Nexus handlers​

Nexus handlers may return different error types. By default, handler errors are retryable unless they are:

When the caller's Nexus Machinery receives an error:

tip

Return a specific Nexus error type to avoid infinite retries. See errors in Nexus Operations for additional details.

Nexus error handling in caller Workflows​

When a Nexus Operation fails, the caller receives a Nexus Operation Failure containing the operation name, token, and failure reason. The cause field indicates the type of error (for example, Application Error or Canceled Error).