Public declaration syntax from forge-rs/crates/forge-codebase/src/error.rs Original source SHA-256: 116abd8a59ff4af2837a5c1776d07b4f081a92664dc0651e2085b3958d261e17 Function bodies and constant values are omitted. This is not the complete implementation. Source line 9 #[derive(Debug, Error)] pub enum CodebaseError { /// The repository path does not exist or is not a directory. #[error( "repository path '{path}' does not exist or is not a directory; \ provide an absolute path to a valid repository root" )] InvalidRepoPath { /// The path that was provided. path: String, }, /// A file could not be read. #[error("failed to read file '{path}': {reason}")] FileReadFailed { /// The file path. path: String, /// Why the read failed. reason: String, }, /// Dependency manifest parsing failed. #[error("failed to parse dependency manifest '{path}': {reason}")] ManifestParseFailed { /// The manifest file path. path: String, /// The parse error. reason: String, }, /// The task description for file ranking was empty. #[error("task description must not be empty for file relevance ranking")] EmptyTaskDescription, /// The file path for impact prediction was empty or invalid. #[error("changed file path must not be empty for impact prediction")] EmptyChangedFile, /// The crate/package name for context assembly was not found. #[error( "crate or package '{name}' not found in repository at '{repo_path}'; \ verify the name matches a Cargo.toml [package] name or package.json name" )] CrateNotFound { /// The crate/package name. name: String, /// The repository path. repo_path: String, }, /// An I/O error occurred. #[error("I/O error during codebase analysis: {reason}")] IoError { /// What went wrong. reason: String, }, } Source line 67 pub type CodebaseResult = Result;