agent_core/controller/
error.rs

1//! Error types for the controller module.
2
3use thiserror::Error;
4
5/// Error type for controller operations.
6#[derive(Error, Debug)]
7pub enum ControllerError {
8    /// Controller has been shutdown.
9    #[error("Controller is shutdown")]
10    Shutdown,
11
12    /// Channel closed unexpectedly.
13    #[error("Channel closed")]
14    ChannelClosed,
15
16    /// Send operation timed out.
17    #[error("Send timeout after {0} seconds")]
18    SendTimeout(u64),
19}