khive_capability/
error.rs1use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum KernelError {
7 #[error("actor not registered: {0}")]
8 UnknownActor(String),
9
10 #[error("namespace not accessible: {0}")]
11 NamespaceDenied(String),
12
13 #[error("capability insufficient: need {needed}, have {have}")]
14 InsufficientRights { needed: String, have: String },
15
16 #[error("capability revoked: {0}")]
17 CapabilityRevoked(u128),
18
19 #[error("capability seal is invalid: {0}")]
20 InvalidSeal(u128),
21
22 #[error("capability identifier space exhausted")]
23 IdSpaceExhausted,
24
25 #[error("delegation failed: {0}")]
26 DelegationFailed(String),
27
28 #[error("lion-core error: {0}")]
29 Core(String),
30}