pub enum GgenError {
Show 16 variants
ValidationError(String),
SparqlError(String),
TemplateError(String),
OutputInvalid(String),
Timeout(String),
FileError(String),
FileErrorWithPath {
path: String,
message: String,
},
NetworkError(String),
JsonError(String),
ConfigError(String),
CommandError(String),
ExternalServiceError(String),
Internal(String),
PaasError(String),
PackReceiptError(String),
InvalidInput(String),
}Expand description
Semantic error types for ggen CLI operations
Variants§
ValidationError(String)
RDF parsing, SHACL validation, or type consistency error
SparqlError(String)
SPARQL query syntax error, termination issue, or execution error
TemplateError(String)
Template rendering error (Tera error, context mismatch)
OutputInvalid(String)
Generated code failed validation (syntax, compilation, safety checks)
Timeout(String)
Operation exceeded time limit (>5s for SPARQL, >10s for code gen)
FileError(String)
File I/O error
FileErrorWithPath
File I/O error with path context
NetworkError(String)
Network operation error (HTTP, API calls, etc.)
JsonError(String)
JSON serialization/deserialization error
ConfigError(String)
Configuration file parsing or validation error
CommandError(String)
clap noun-verb command execution error
ExternalServiceError(String)
External tool/dependency error (LLM, marketplace, etc.)
Internal(String)
Internal error (should be avoided - use specific variants above)
PaasError(String)
PaaS operation error (converted from PaasError)
PackReceiptError(String)
Pack receipt error (converted from PackReceiptError)
InvalidInput(String)
Validation error (converted from ValidationError)
Implementations§
Source§impl GgenError
impl GgenError
Sourcepub fn from_clap_error(err: NounVerbError) -> Self
pub fn from_clap_error(err: NounVerbError) -> Self
Convert from clap noun-verb error
Sourcepub fn from_paas_error(err: impl Display) -> Self
pub fn from_paas_error(err: impl Display) -> Self
Convert from PaasError
Sourcepub fn from_pack_receipt_error(err: impl Display) -> Self
pub fn from_pack_receipt_error(err: impl Display) -> Self
Convert from PackReceiptError
Sourcepub fn from_validation_error(err: impl Display) -> Self
pub fn from_validation_error(err: impl Display) -> Self
Convert from ValidationError
Sourcepub fn file_error(path: &str, message: &str) -> Self
pub fn file_error(path: &str, message: &str) -> Self
Create a file error with path context
Sourcepub fn network_error(message: &str) -> Self
pub fn network_error(message: &str) -> Self
Create a network error
Sourcepub fn external_service_error(message: &str) -> Self
pub fn external_service_error(message: &str) -> Self
Create an external service error
Trait Implementations§
Source§impl Error for GgenError
impl Error for GgenError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for GgenError
impl RefUnwindSafe for GgenError
impl Send for GgenError
impl Sync for GgenError
impl Unpin for GgenError
impl UnsafeUnpin for GgenError
impl UnwindSafe for GgenError
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.