Error Handling
Managing errors with the Pipecat Cloud Python SDK
The Pipecat Cloud SDK defines several exception classes to help you handle different error conditions.
Base Exception Class
Error
Base class for all Pipecat Cloud exceptions.
Session Errors
AgentStartError
Raised when an agent fails to start.
Properties
Error message with details about the failure.
Error code that can be used for conditional handling of different error types.
AgentNotHealthyError
Raised when attempting to interact with an agent that is not in a ready state.
Properties
Error message with details about the agent’s status.
Error code identifying the specific issue with the agent.
Authentication Errors
AuthError
Raised when authentication fails or token has expired.
Properties
Message explaining the authentication failure.
Configuration Errors
ConfigError
Raised when there are issues with configuration storage or retrieval.
Properties
Message explaining the configuration issue.
ConfigFileError
Raised when the configuration file is malformed.
InvalidError
Raised when an invalid operation is attempted.