pub enum AetherError {
Show 13 variants
TemplateParse(String),
SlotNotFound(String),
ProviderError(String),
ValidationFailed {
slot: String,
error: String,
},
MaxRetriesExceeded {
slot: String,
retries: u32,
last_error: String,
},
NetworkError(String),
InjectionError(String),
ConfigError(String),
RenderError(String),
IoError(Error),
JsonError(Error),
ContextSerializationError(String),
Timeout(u64),
}Expand description
Main error type for the Aether framework.
Variants§
TemplateParse(String)
Template parsing failed.
SlotNotFound(String)
Slot not found in template.
ProviderError(String)
AI provider returned an error.
ValidationFailed
Validation failed during self-healing.
MaxRetriesExceeded
Maximum retries exceeded during self-healing.
NetworkError(String)
Network request failed.
InjectionError(String)
Code injection failed.
ConfigError(String)
Invalid configuration.
RenderError(String)
Template rendering failed.
IoError(Error)
IO operation failed.
JsonError(Error)
JSON serialization/deserialization failed.
ContextSerializationError(String)
Error during context serialization (e.g., for TOON)
Timeout(u64)
Timeout occurred.
Trait Implementations§
Source§impl Debug for AetherError
impl Debug for AetherError
Source§impl Display for AetherError
impl Display for AetherError
Source§impl Error for AetherError
impl Error for AetherError
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<Error> for AetherError
impl From<Error> for AetherError
Auto Trait Implementations§
impl Freeze for AetherError
impl !RefUnwindSafe for AetherError
impl Send for AetherError
impl Sync for AetherError
impl Unpin for AetherError
impl !UnwindSafe for AetherError
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
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>
Converts
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>
Converts
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> 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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§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.