#[non_exhaustive]pub enum CoreError {
AgentMismatch {
expected: String,
found: String,
},
NotInterrupted,
PendingInterruption,
UnsupportedRunState {
found: u32,
supported: u32,
},
ApprovalAlreadyUsed,
Store(StoreError),
}Expand description
Errors from run/resume itself. Things that happen inside a run
(tool failures, provider outages, limits) are reported through
crate::RunStatus, not here.
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.
AgentMismatch
NotInterrupted
PendingInterruption
UnsupportedRunState
ApprovalAlreadyUsed
The approval in this state was already used: an answer runs its call once, however many copies of the state are resumed.
Store(StoreError)
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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<CoreError> for StructuredError
impl From<CoreError> for StructuredError
Source§impl From<StoreError> for CoreError
impl From<StoreError> for CoreError
Source§fn from(source: StoreError) -> CoreError
fn from(source: StoreError) -> CoreError
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CoreError
impl Freeze for CoreError
impl Move for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreErrorwhere
RawVecInner: Send,
impl Sync for CoreErrorwhere
RawVecInner: Sync,
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreErrorwhere
RawVecInner: UnwindSafe,
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 more