pub enum AppServerError {
InterruptedByUser(String),
LockPoisoned {
provider: &'static str,
},
PromptRender(String),
Provider(String),
RetryExhausted {
provider: &'static str,
first_error: String,
retry_error: String,
},
Transport(AppServerTransportError),
}Expand description
Typed error returned by app-server infrastructure operations.
Wraps transport failures, prompt rendering issues, lock errors, and provider-specific failures so callers can distinguish error categories without parsing opaque strings.
Variants§
InterruptedByUser(String)
The user interrupted an in-flight app-server turn.
LockPoisoned
The session registry mutex is poisoned.
PromptRender(String)
A prompt template or protocol instruction rendering failed.
Provider(String)
A provider-specific runtime startup or turn execution failure.
RetryExhausted
Both the initial attempt and one retry after restart failed.
Fields
Transport(AppServerTransportError)
An stdio transport or process communication failure.
Trait Implementations§
Source§impl Debug for AppServerError
impl Debug for AppServerError
Source§impl Display for AppServerError
impl Display for AppServerError
Source§impl Error for AppServerError
impl Error for AppServerError
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<AppServerError> for AgentError
impl From<AppServerError> for AgentError
Source§fn from(source: AppServerError) -> Self
fn from(source: AppServerError) -> Self
Converts to this type from the input type.
Source§impl From<AppServerTransportError> for AppServerError
impl From<AppServerTransportError> for AppServerError
Source§fn from(source: AppServerTransportError) -> Self
fn from(source: AppServerTransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AppServerError
impl !UnwindSafe for AppServerError
impl Freeze for AppServerError
impl Send for AppServerError
impl Sync for AppServerError
impl Unpin for AppServerError
impl UnsafeUnpin for AppServerError
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.