Overview
Pipecat Flows defines a hierarchy of exceptions for handling errors during flow execution. All exceptions inherit fromFlowError, making it possible to catch all flow-related errors with a single handler.
Exception Hierarchy
FlowError
FlowInitializationError
initialize() with an invalid node config.
Raised by: FlowManager.initialize()
FlowTransitionError
FlowManager.set_node_from_config(), internal node transition logic
InvalidFunctionError
FlowsDirectFunctionWrapper.validate_function()
ActionError
tts_say, end_conversation, function) and custom registered actions. Common causes include missing required fields (e.g., text for tts_say), unregistered action types, or handler execution errors.
Raised by: ActionManager.execute_actions(), action handler registration