Error Node

vellum.workflows.nodes.ErrorNode

Used to raise an error to reject the surrounding Workflow and return custom error messages.

Attributes

error
Union[str, VellumError]Required

The error to raise. Can be either:

  • A string message
  • A VellumError object with a message and error code

Outputs

This node doesn’t produce outputs. However, Workflows that invoke this node will error and the error message will appear in the Vellum UI.