pub enum KernelError {
Show 49 variants
UnknownSession(SessionId),
SessionAlreadyExists(SessionId),
Session(SessionError),
CapabilityExpired,
CapabilityNotYetValid,
CapabilityRevoked(CapabilityId),
InvalidSignature,
UntrustedIssuer,
CapabilityIssuanceFailed(String),
CapabilityIssuanceDenied(String),
OutOfScope {
tool: String,
server: String,
},
OutOfScopeResource {
uri: String,
},
OutOfScopePrompt {
prompt: String,
},
BudgetExhausted(CapabilityId),
SubjectMismatch {
expected: String,
actual: String,
},
DelegationChainRevoked(CapabilityId),
DelegationInvalid(String),
InvalidConstraint(String),
GovernedTransactionDenied(String),
GuardDenied(String),
ToolServerError(String),
RequestIncomplete(String),
ToolNotRegistered(String),
ResourceNotRegistered(String),
ResourceRootDenied {
uri: String,
reason: String,
},
PromptNotRegistered(String),
SamplingNotAllowedByPolicy,
SamplingNotNegotiated,
SamplingContextNotSupported,
SamplingToolUseNotAllowedByPolicy,
SamplingToolUseNotNegotiated,
ElicitationNotAllowedByPolicy,
ElicitationNotNegotiated,
ElicitationFormNotSupported,
ElicitationUrlNotSupported,
UrlElicitationsRequired {
message: String,
elicitations: Vec<CreateElicitationOperation>,
},
RootsNotNegotiated,
InvalidChildRequestParent,
RequestCancelled {
request_id: RequestId,
reason: String,
},
ReceiptSigningFailed(String),
ReceiptPersistence(ReceiptStoreError),
RevocationStore(RevocationStoreError),
BudgetStore(BudgetStoreError),
NoCrossCurrencyOracle {
base: String,
quote: String,
},
CrossCurrencyOracle(String),
Web3EvidenceUnavailable(String),
Internal(String),
DpopVerificationFailed(String),
ApprovalRejected(String),
}Expand description
Errors that can occur during kernel operations.
Variants§
UnknownSession(SessionId)
SessionAlreadyExists(SessionId)
Session(SessionError)
CapabilityExpired
CapabilityNotYetValid
CapabilityRevoked(CapabilityId)
InvalidSignature
UntrustedIssuer
CapabilityIssuanceFailed(String)
CapabilityIssuanceDenied(String)
OutOfScope
OutOfScopeResource
OutOfScopePrompt
BudgetExhausted(CapabilityId)
SubjectMismatch
DelegationChainRevoked(CapabilityId)
DelegationInvalid(String)
InvalidConstraint(String)
GovernedTransactionDenied(String)
GuardDenied(String)
ToolServerError(String)
RequestIncomplete(String)
ToolNotRegistered(String)
ResourceNotRegistered(String)
ResourceRootDenied
PromptNotRegistered(String)
SamplingNotAllowedByPolicy
SamplingNotNegotiated
SamplingContextNotSupported
SamplingToolUseNotAllowedByPolicy
SamplingToolUseNotNegotiated
ElicitationNotAllowedByPolicy
ElicitationNotNegotiated
ElicitationFormNotSupported
ElicitationUrlNotSupported
UrlElicitationsRequired
RootsNotNegotiated
InvalidChildRequestParent
RequestCancelled
ReceiptSigningFailed(String)
ReceiptPersistence(ReceiptStoreError)
RevocationStore(RevocationStoreError)
BudgetStore(BudgetStoreError)
NoCrossCurrencyOracle
CrossCurrencyOracle(String)
Internal(String)
DpopVerificationFailed(String)
ApprovalRejected(String)
Phase 3.4: a human-in-the-loop approval token failed to satisfy the pending approval contract (bad binding, bad signature, expired, or replayed).
Implementations§
Source§impl KernelError
impl KernelError
pub fn report(&self) -> StructuredErrorReport
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
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<BudgetStoreError> for KernelError
impl From<BudgetStoreError> for KernelError
Source§fn from(source: BudgetStoreError) -> Self
fn from(source: BudgetStoreError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionNonceError> for KernelError
impl From<ExecutionNonceError> for KernelError
Source§fn from(err: ExecutionNonceError) -> Self
fn from(err: ExecutionNonceError) -> Self
Converts to this type from the input type.
Source§impl From<ReceiptStoreError> for KernelError
impl From<ReceiptStoreError> for KernelError
Source§fn from(source: ReceiptStoreError) -> Self
fn from(source: ReceiptStoreError) -> Self
Converts to this type from the input type.
Source§impl From<RevocationStoreError> for KernelError
impl From<RevocationStoreError> for KernelError
Source§fn from(source: RevocationStoreError) -> Self
fn from(source: RevocationStoreError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for KernelError
impl From<SessionError> for KernelError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KernelError
impl !RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnsafeUnpin for KernelError
impl !UnwindSafe for KernelError
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.