pub enum DagError {
VertexNotFound(VertexName),
IdNotFound(Id),
NeedSlowPath(String),
Programming(String),
Bug(String),
Backend(Box<BackendError>),
IdOverflow(Group),
}
Expand description
Error used by the Dag crate.
Variants§
VertexNotFound(VertexName)
A vertex name cannot be found.
IdNotFound(Id)
An Id cannot be found.
NeedSlowPath(String)
A fast path cannot be used.
Programming(String)
Callsite does something wrong. For example, a “parent function” does not return reproducible results for a same vertex if called twice.
Bug(String)
Logic error in this crate. A bug in this crate or the backend data.
Backend(Box<BackendError>)
The backend (ex. filesystem) cannot fulfill the request somehow.
IdOverflow(Group)
No space for new Ids.
Trait Implementations§
source§impl Error for DagError
impl Error for DagError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BackendError> for DagError
impl From<BackendError> for DagError
source§fn from(err: BackendError) -> DagError
fn from(err: BackendError) -> DagError
Converts to this type from the input type.