#[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<StoreError> for CoreError
impl From<StoreError> for CoreError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
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