pub enum DomeError {
AuthFailed {
reason: String,
},
PolicyDenied {
rule_id: String,
tool: String,
},
RateLimited {
limit: u64,
window: String,
},
BudgetExhausted {
spent: f64,
cap: f64,
unit: String,
},
InjectionDetected {
pattern: String,
field: String,
},
SchemaDrift {
tool: String,
field: String,
},
Transport(Error),
Json(Error),
Upstream(String),
Internal(String),
}Expand description
Unified error taxonomy for Thunder Dome.
Every error maps to a JSON-RPC error code so we can send meaningful responses back to the MCP client.
Variants§
AuthFailed
PolicyDenied
RateLimited
BudgetExhausted
InjectionDetected
SchemaDrift
Transport(Error)
Json(Error)
Upstream(String)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Error for DomeError
impl Error for DomeError
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()
Auto Trait Implementations§
impl Freeze for DomeError
impl !RefUnwindSafe for DomeError
impl Send for DomeError
impl Sync for DomeError
impl Unpin for DomeError
impl UnsafeUnpin for DomeError
impl !UnwindSafe for DomeError
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