pub enum SynapseError {
Show 19 variants
Prompt(String),
Model(String),
Tool(String),
ToolNotFound(String),
Memory(String),
RateLimit(String),
Timeout(String),
Validation(String),
Parsing(String),
Callback(String),
MaxStepsExceeded {
max_steps: usize,
},
Embedding(String),
VectorStore(String),
Retriever(String),
Loader(String),
Splitter(String),
Graph(String),
Cache(String),
Config(String),
}Expand description
Unified error type for the Synapse framework with variants covering all subsystems.
Variants§
Prompt(String)
Model(String)
Tool(String)
ToolNotFound(String)
Memory(String)
RateLimit(String)
Timeout(String)
Validation(String)
Parsing(String)
Callback(String)
MaxStepsExceeded
Embedding(String)
VectorStore(String)
Retriever(String)
Loader(String)
Splitter(String)
Graph(String)
Cache(String)
Config(String)
Trait Implementations§
Source§impl Debug for SynapseError
impl Debug for SynapseError
Source§impl Display for SynapseError
impl Display for SynapseError
Source§impl Error for SynapseError
impl Error for SynapseError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SynapseError
impl RefUnwindSafe for SynapseError
impl Send for SynapseError
impl Sync for SynapseError
impl Unpin for SynapseError
impl UnsafeUnpin for SynapseError
impl UnwindSafe for SynapseError
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