pub enum CatapultError {
Show 22 variants
FranchiseNotFound(Uuid),
NewcoNotFound(Uuid),
InvalidPhaseTransition {
from: OperationalPhase,
to: OperationalPhase,
},
RosterIncomplete {
phase: OperationalPhase,
needed: usize,
have: usize,
},
SlotAlreadyFilled(OdaSlot),
SlotEmpty(OdaSlot),
BudgetExceeded {
spent_cents: u64,
limit_cents: u64,
},
HeartbeatTimeout {
agent_did: String,
elapsed_ms: u64,
},
GoalNotFound(Uuid),
DuplicateGoal(Uuid),
FranchiseAlreadyExists(Uuid),
NewcoAlreadyExists(Uuid),
InvalidAgent {
reason: String,
},
InvalidBudgetPolicy {
reason: String,
},
InvalidCostEvent {
reason: String,
},
InvalidGoal {
reason: String,
},
InvalidHeartbeat {
reason: String,
},
InvalidFranchiseBlueprint {
reason: String,
},
InvalidNewco {
reason: String,
},
InvalidReceipt {
reason: String,
},
ReceiptSerializationFailed {
reason: String,
},
ReceiptChainBroken {
index: usize,
},
}Expand description
Errors returned by Catapult franchise operations.
Variants§
FranchiseNotFound(Uuid)
NewcoNotFound(Uuid)
InvalidPhaseTransition
RosterIncomplete
SlotAlreadyFilled(OdaSlot)
SlotEmpty(OdaSlot)
BudgetExceeded
HeartbeatTimeout
GoalNotFound(Uuid)
DuplicateGoal(Uuid)
FranchiseAlreadyExists(Uuid)
NewcoAlreadyExists(Uuid)
InvalidAgent
InvalidBudgetPolicy
InvalidCostEvent
InvalidGoal
InvalidHeartbeat
InvalidFranchiseBlueprint
InvalidNewco
InvalidReceipt
ReceiptSerializationFailed
ReceiptChainBroken
Trait Implementations§
Source§impl Debug for CatapultError
impl Debug for CatapultError
Source§impl Display for CatapultError
impl Display for CatapultError
Source§impl Error for CatapultError
impl Error for CatapultError
1.30.0 · 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 CatapultError
impl RefUnwindSafe for CatapultError
impl Send for CatapultError
impl Sync for CatapultError
impl Unpin for CatapultError
impl UnsafeUnpin for CatapultError
impl UnwindSafe for CatapultError
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