pub enum AgentDbError {
NotFound(String),
Unsupported(String),
Transaction(String),
Connection(String),
Serialization(String),
InvalidOperation(String),
Backend(String),
Io(Error),
Other(Box<dyn Error + Send + Sync>),
}Expand description
Error types for AgentDB operations
Variants§
NotFound(String)
Key not found
Unsupported(String)
Operation not supported by this backend
Transaction(String)
Transaction error
Connection(String)
Connection error
Serialization(String)
Serialization/deserialization error
InvalidOperation(String)
Invalid operation or parameters
Backend(String)
Backend-specific error
Io(Error)
IO error
Other(Box<dyn Error + Send + Sync>)
Other error
Trait Implementations§
Source§impl Debug for AgentDbError
impl Debug for AgentDbError
Source§impl Display for AgentDbError
impl Display for AgentDbError
Source§impl Error for AgentDbError
impl Error for AgentDbError
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 !RefUnwindSafe for AgentDbError
impl !UnwindSafe for AgentDbError
impl Freeze for AgentDbError
impl Send for AgentDbError
impl Sync for AgentDbError
impl Unpin for AgentDbError
impl UnsafeUnpin for AgentDbError
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