Public declaration syntax from forge-rs/crates/forge-toolbelt/src/error.rs Original source SHA-256: 28c734e90e4ed21e68cbe303ddb2c089455472425286e8403a5ddd67479eb60e Function bodies and constant values are omitted. This is not the complete implementation. Source line 7 #[derive(Debug, Error)] pub enum ToolbeltError { /// A tool group is not enabled in the current configuration. #[error("tool group '{group}' is not enabled in the toolbelt configuration")] GroupNotEnabled { /// The disabled group. group: String, }, /// Shell command execution was denied by policy. #[error("shell command '{command}' denied by policy '{policy}': {reason}")] ShellDenied { /// The command that was denied. command: String, /// The active policy. policy: String, /// Why the command was denied. reason: String, }, /// File operation failed. #[error("file operation failed on '{path}': {reason}")] FileOpFailed { /// The file path. path: String, /// What went wrong. reason: String, }, } Source line 37 pub type ToolbeltResult = Result;