#[non_exhaustive]pub enum EngineError {
ConfigError(String),
PromptError(PromptError),
AgentError(ClaudeError),
IoError {
path: PathBuf,
source: Error,
},
YamlError {
path: PathBuf,
source: Error,
},
TaskConfigNotFound(String),
GitError(String),
GitHubError(String),
}Expand description
Error type for engine operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConfigError(String)
Configuration error.
PromptError(PromptError)
Error from the prompt manager.
AgentError(ClaudeError)
Error from the Claude agent SDK.
IoError
I/O error during file operations.
YamlError
YAML parsing error.
TaskConfigNotFound(String)
Task configuration not found.
GitError(String)
Git operation error.
GitHubError(String)
GitHub CLI operation error.
Implementations§
Source§impl EngineError
impl EngineError
Sourcepub fn io_error(path: impl Into<PathBuf>, source: Error) -> Self
pub fn io_error(path: impl Into<PathBuf>, source: Error) -> Self
Create a new I/O error with path context.
Sourcepub fn yaml_error(path: impl Into<PathBuf>, source: Error) -> Self
pub fn yaml_error(path: impl Into<PathBuf>, source: Error) -> Self
Create a new YAML error with path context.
Sourcepub fn config_error(message: impl Into<String>) -> Self
pub fn config_error(message: impl Into<String>) -> Self
Create a new configuration error.
Sourcepub fn github_error(message: impl Into<String>) -> Self
pub fn github_error(message: impl Into<String>) -> Self
Create a new GitHub CLI error.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ClaudeError> for EngineError
impl From<ClaudeError> for EngineError
Source§fn from(source: ClaudeError) -> Self
fn from(source: ClaudeError) -> Self
Converts to this type from the input type.
Source§impl From<PromptError> for EngineError
impl From<PromptError> for EngineError
Source§fn from(source: PromptError) -> Self
fn from(source: PromptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EngineError
impl !RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl !UnwindSafe for EngineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more