pub enum OfficeError {
Brain(String),
Gate(String),
PolicyViolation(String),
Tool(String),
Io(String),
Config(String),
ContextOverflow(String),
QuotaExceeded(String),
Ledger(String),
Provider(String),
Shutdown,
}Expand description
Errors from the Office runtime.
Variants§
Brain(String)
Cognition error (brain failure).
Gate(String)
Policy gate error.
PolicyViolation(String)
Policy violation — action blocked by Gate.
Tool(String)
Tool execution error.
Io(String)
IO error.
Config(String)
Configuration error.
ContextOverflow(String)
Context window exceeded.
QuotaExceeded(String)
Quota exceeded (tokens, decisions, daily limit).
Ledger(String)
Ledger append failed.
Provider(String)
Provider error (LLM API).
Shutdown
Shutdown requested.
Trait Implementations§
Source§impl Debug for OfficeError
impl Debug for OfficeError
Source§impl Display for OfficeError
impl Display for OfficeError
Source§impl Error for OfficeError
impl Error for OfficeError
1.30.0 · 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<BrainError> for OfficeError
impl From<BrainError> for OfficeError
Source§fn from(e: BrainError) -> Self
fn from(e: BrainError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OfficeError
impl From<Error> for OfficeError
Auto Trait Implementations§
impl Freeze for OfficeError
impl RefUnwindSafe for OfficeError
impl Send for OfficeError
impl Sync for OfficeError
impl Unpin for OfficeError
impl UnwindSafe for OfficeError
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