summaryrefslogtreecommitdiff
path: root/nfa/src/error.rs
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-12-14 23:48:22 +0800
committerJSDurand <mmemmew@gmail.com>2022-12-14 23:48:22 +0800
commit9f1c88b863e247da3cd60d2792a7a13b18e25e53 (patch)
treed29c0e19793a88a1de6898fdfd2a376fca21378f /nfa/src/error.rs
parentcb7bcfad4ab0041aaf3fde3185e27ee46bb37788 (diff)
a temporary check point
just to save things in a commit
Diffstat (limited to 'nfa/src/error.rs')
-rw-r--r--nfa/src/error.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/nfa/src/error.rs b/nfa/src/error.rs
index 6112878..0c6bb3c 100644
--- a/nfa/src/error.rs
+++ b/nfa/src/error.rs
@@ -5,9 +5,15 @@ use graph::error::Error as GError;
use std::fmt::{Display, Formatter};
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)]
+/// The error type for NFA operations.
pub enum Error {
+ /// An unknown node id is encountered.
UnknownNode(usize),
+ /// Some operations are not supported by the implementations.
+ ///
+ /// Everything is a trade-off, wink wink.
UnsupportedOperation,
+ /// This error comes from some underlying graph operation.
Graph(GError),
}