pub enum PunchError {
Show 24 variants
Config(String),
Fighter(String),
Gorilla(String),
Troop(String),
Tenant(String),
QuotaExceeded(String),
Bout(String),
CapabilityDenied(String),
Auth(String),
Tool {
tool: String,
message: String,
},
ToolNotFound(String),
ToolTimeout {
tool: String,
timeout_ms: u64,
},
Provider {
provider: String,
message: String,
},
RateLimited {
provider: String,
retry_after_ms: u64,
},
ContextOverflow {
used: u64,
limit: u64,
},
Memory(String),
KnowledgeGraph(String),
Channel {
channel: String,
message: String,
},
EventBus(String),
Mcp {
server: String,
message: String,
},
Io(Error),
Serialization(Error),
Marketplace(String),
Internal(String),
}Expand description
Unified error type for the Punch system.
Variants§
Config(String)
Fighter(String)
Gorilla(String)
Troop(String)
Tenant(String)
QuotaExceeded(String)
Bout(String)
CapabilityDenied(String)
Auth(String)
Tool
ToolNotFound(String)
ToolTimeout
Provider
RateLimited
ContextOverflow
Memory(String)
KnowledgeGraph(String)
Channel
EventBus(String)
Mcp
Io(Error)
Serialization(Error)
Marketplace(String)
Internal(String)
Trait Implementations§
Source§impl Debug for PunchError
impl Debug for PunchError
Source§impl Display for PunchError
impl Display for PunchError
Source§impl Error for PunchError
impl Error for PunchError
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<CdpError> for PunchError
impl From<CdpError> for PunchError
Source§impl From<Error> for PunchError
impl From<Error> for PunchError
Auto Trait Implementations§
impl Freeze for PunchError
impl !RefUnwindSafe for PunchError
impl Send for PunchError
impl Sync for PunchError
impl Unpin for PunchError
impl UnsafeUnpin for PunchError
impl !UnwindSafe for PunchError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§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.