pub enum BambooError {
Config(String),
Io(Error),
Serialization(Error),
HttpServer(String),
ProcessManagement(String),
Agent(String),
Other(Error),
}Expand description
Main error type for Bamboo operations
This enum represents all possible errors that can occur when working with the Bamboo system, including configuration, I/O, serialization, HTTP server, process management, and agent-related errors.
Variants§
Config(String)
Configuration-related errors (invalid settings, missing config files, etc.)
Io(Error)
I/O errors from file system operations
Serialization(Error)
Serialization/deserialization errors (JSON, YAML, etc.)
HttpServer(String)
HTTP server startup and runtime errors
ProcessManagement(String)
Process management errors (spawning, monitoring, etc.)
Agent(String)
Agent execution errors (LLM communication, tool execution, etc.)
Other(Error)
Generic errors from anyhow
Trait Implementations§
Source§impl Debug for BambooError
impl Debug for BambooError
Source§impl Display for BambooError
impl Display for BambooError
Source§impl Error for BambooError
impl Error for BambooError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for BambooError
impl From<Error> for BambooError
Source§impl From<Error> for BambooError
impl From<Error> for BambooError
Auto Trait Implementations§
impl Freeze for BambooError
impl !RefUnwindSafe for BambooError
impl Send for BambooError
impl Sync for BambooError
impl Unpin for BambooError
impl UnsafeUnpin for BambooError
impl !UnwindSafe for BambooError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.