pub enum PulseHiveError {
Substrate(PulseDBError),
Llm(String),
Tool(String),
Agent(String),
Config(String),
Validation(String),
Embedding(String),
}Expand description
Top-level error type for all PulseHive operations.
Variants§
Substrate(PulseDBError)
Error from the PulseDB storage substrate.
Automatically converted from pulsedb::PulseDBError via the ? operator.
Llm(String)
Error from an LLM provider (API failure, rate limit, parse error).
Tool(String)
Error during tool execution.
Agent(String)
Error in agent lifecycle (deploy, loop, completion).
Config(String)
Invalid configuration (missing substrate, no providers, etc.).
Validation(String)
Input validation failure.
Embedding(String)
Error from an embedding provider.
Implementations§
Source§impl PulseHiveError
impl PulseHiveError
Sourcepub fn validation(msg: impl Into<String>) -> Self
pub fn validation(msg: impl Into<String>) -> Self
Creates a validation error.
Trait Implementations§
Source§impl Debug for PulseHiveError
impl Debug for PulseHiveError
Source§impl Display for PulseHiveError
impl Display for PulseHiveError
Source§impl Error for PulseHiveError
impl Error for PulseHiveError
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<PulseDBError> for PulseHiveError
impl From<PulseDBError> for PulseHiveError
Source§fn from(source: PulseDBError) -> Self
fn from(source: PulseDBError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PulseHiveError
impl !RefUnwindSafe for PulseHiveError
impl Send for PulseHiveError
impl Sync for PulseHiveError
impl Unpin for PulseHiveError
impl UnsafeUnpin for PulseHiveError
impl !UnwindSafe for PulseHiveError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more