pub enum Error {
Show 44 variants
Config(String),
Template {
template: String,
message: String,
},
TemplateNotFound(String),
TemplateValidation {
template: String,
reason: String,
},
TemplateExecution(String),
TemplateCompilation {
template: PathBuf,
error: String,
},
Network(String),
HttpRequest(Error),
InvalidTarget {
target: String,
reason: String,
},
TargetUnreachable(String),
Parse(String),
YamlParse(Error),
JsonParse(Error),
Io(Error),
FileNotFound(PathBuf),
Plugin {
plugin: String,
message: String,
},
PluginNotFound(String),
Scheduler(String),
Timeout {
duration: String,
},
Execution(String),
Command(String),
RateLimitExceeded(String),
Authentication(String),
Authorization(String),
Validation(String),
Serialization(String),
OutputFormat {
format: String,
message: String,
},
Protocol {
protocol: String,
message: String,
},
DnsResolution {
hostname: String,
error: String,
},
Tls(String),
Certificate(String),
Matcher(String),
Database(String),
Cache(String),
Metrics(String),
Distributed(String),
Worker {
worker_id: String,
message: String,
},
Coordinator(String),
Ai(String),
Internal(String),
Update(Error),
NotImplemented(String),
WithContext {
context: String,
source: Box<Error>,
},
Multiple(Vec<Error>),
}Expand description
Main error type for CERT-X-GEN
Variants§
Config(String)
Configuration errors
Template
Template errors
TemplateNotFound(String)
Template not found
TemplateValidation
Template validation failed
TemplateExecution(String)
Template execution error
TemplateCompilation
Template compilation error
Network(String)
Network errors
HttpRequest(Error)
HTTP request error
InvalidTarget
Target errors
TargetUnreachable(String)
Target unreachable
Parse(String)
Parsing errors
YamlParse(Error)
YAML parsing error
JsonParse(Error)
JSON parsing error
Io(Error)
IO errors
FileNotFound(PathBuf)
File not found
Plugin
Plugin errors
PluginNotFound(String)
Plugin not found
Scheduler(String)
Scheduler errors
Timeout
Timeout error
Execution(String)
Execution errors
Command(String)
Command execution error
RateLimitExceeded(String)
Rate limit exceeded
Authentication(String)
Authentication error
Authorization(String)
Authorization error
Validation(String)
Validation errors
Serialization(String)
Serialization error
OutputFormat
Output format error
Protocol
Protocol error
DnsResolution
DNS resolution error
Tls(String)
TLS error
Certificate(String)
Certificate error
Matcher(String)
Matcher error
Database(String)
Database error
Cache(String)
Cache error
Metrics(String)
Metrics error
Distributed(String)
Distributed system error
Worker
Worker error
Coordinator(String)
Coordinator error
Ai(String)
AI/LLM errors
Internal(String)
Internal error
Update(Error)
Self-update error
NotImplemented(String)
Not implemented
WithContext
Generic error with context
Multiple(Vec<Error>)
Multiple errors
Implementations§
Source§impl Error
impl Error
Sourcepub fn template<S: Into<String>, M: Into<String>>(
template: S,
message: M,
) -> Self
pub fn template<S: Into<String>, M: Into<String>>( template: S, message: M, ) -> Self
Create a template error
Sourcepub fn invalid_target<S: Into<String>, R: Into<String>>(
target: S,
reason: R,
) -> Self
pub fn invalid_target<S: Into<String>, R: Into<String>>( target: S, reason: R, ) -> Self
Create an invalid target error
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if error is retryable
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()