From 22926ce29e3f8e040ec349401aeb6a77f32eae72 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 4 Mar 2026 21:26:04 +0800 Subject: Initialize Butchunker project structure and policy system --- policy/_policies/src/error.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 policy/_policies/src/error.rs (limited to 'policy/_policies/src/error.rs') diff --git a/policy/_policies/src/error.rs b/policy/_policies/src/error.rs new file mode 100644 index 0000000..975749d --- /dev/null +++ b/policy/_policies/src/error.rs @@ -0,0 +1,14 @@ +#[derive(Debug, thiserror::Error)] +pub enum ChunkFailed { + #[error("IO error: {0}")] + Io(#[from] std::io::Error), + + #[error("Target policy not found")] + PolicyNotFound, + + #[error("File read failed: {0}")] + FileReadFailed(std::path::PathBuf), + + #[error("File open failed: {0}")] + FileOpenFailed(std::path::PathBuf), +} -- cgit