pub enum PhagoError {
Document(DocumentError),
Graph(GraphError),
Agent(AgentError),
Session(SessionError),
Query(QueryError),
Config(ConfigError),
Io(String),
Serialization(String),
}Expand description
Errors that can occur during Phago operations.
Variants§
Document(DocumentError)
Document-related errors.
Graph(GraphError)
Graph-related errors.
Agent(AgentError)
Agent-related errors.
Session(SessionError)
Session-related errors.
Query(QueryError)
Query-related errors.
Config(ConfigError)
Configuration errors.
Io(String)
I/O errors (wrapped).
Serialization(String)
Serialization errors.
Implementations§
Source§impl PhagoError
impl PhagoError
pub fn document_not_found(id: impl Into<String>) -> Self
pub fn node_not_found(id: impl Into<String>) -> Self
pub fn agent_not_found(id: impl Into<String>) -> Self
pub fn empty_query() -> Self
pub fn invalid_config( field: impl Into<String>, value: impl Into<String>, reason: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for PhagoError
impl Clone for PhagoError
Source§fn clone(&self) -> PhagoError
fn clone(&self) -> PhagoError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhagoError
impl Debug for PhagoError
Source§impl Display for PhagoError
impl Display for PhagoError
Source§impl Error for PhagoError
impl Error for PhagoError
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()
Source§impl From<Error> for PhagoError
impl From<Error> for PhagoError
Auto Trait Implementations§
impl Freeze for PhagoError
impl RefUnwindSafe for PhagoError
impl Send for PhagoError
impl Sync for PhagoError
impl Unpin for PhagoError
impl UnwindSafe for PhagoError
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