refactor: reduce coupling

This commit is contained in:
imxyy1soope1 committed 2025-08-05 21:51:03 +08:00
1 parent 78e3c5a26e
commit 7afb2a7b1c
53 files changed
+2964 -3444

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
use thiserror::Error;
pub type Result<T> = core::result::Result<T, Error>;
#[derive(Error, Debug)]
pub enum Error {
#[error("error occurred during parse stage: {0}")]
ParseError(String),
#[error("error occurred during downgrade stage: {0}")]
DowngradeError(String),
#[error("error occurred during variable resolve stage: {0}")]
ResolutionError(String),
#[error("error occurred during evaluation stage: {0}")]
EvalError(String),
#[error("unknown error")]
Unknown,
}