Add snafu for errors
This commit is contained in:
parent
ffde65fb81
commit
4c9703340e
|
@ -24,6 +24,7 @@ use {
|
||||||
core::{convert::TryFrom, fmt},
|
core::{convert::TryFrom, fmt},
|
||||||
paste::paste,
|
paste::paste,
|
||||||
register::{register_bitfields, LocalRegisterCopy},
|
register::{register_bitfields, LocalRegisterCopy},
|
||||||
|
snafu::Snafu,
|
||||||
};
|
};
|
||||||
|
|
||||||
//==================
|
//==================
|
||||||
|
@ -365,6 +366,7 @@ impl CapNodeCapability {
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DerivationTreeNode(LocalRegisterCopy<u128, CapDerivationNode::Register>);
|
pub struct DerivationTreeNode(LocalRegisterCopy<u128, CapDerivationNode::Register>);
|
||||||
|
|
||||||
|
#[derive(Debug, Snafu)]
|
||||||
pub enum DerivationTreeError {
|
pub enum DerivationTreeError {
|
||||||
InvalidPrev,
|
InvalidPrev,
|
||||||
}
|
}
|
||||||
|
@ -437,7 +439,7 @@ impl CapTableEntry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Snafu)]
|
||||||
pub enum CapError {
|
pub enum CapError {
|
||||||
CannotCreate,
|
CannotCreate,
|
||||||
InvalidCapabilityType,
|
InvalidCapabilityType,
|
||||||
|
|
Loading…
Reference in New Issue