Enum casper_types::system_contract_errors::pos::Error [−][src]
Errors which can occur while executing the Proof of Stake contract.
Variants
The given validator is not bonded.
There are too many bonding or unbonding attempts already enqueued to allow more.
At least one validator must remain bonded.
Failed to bond or unbond as this would have resulted in exceeding the maximum allowed difference between the largest and smallest stakes.
The given validator already has a bond or unbond attempt enqueued.
Attempted to bond with a stake which was too small.
Attempted to bond with a stake which was too large.
Attempted to unbond an amount which was too large.
While bonding, the transfer from source purse to the Proof of Stake internal purse failed.
While unbonding, the transfer from the Proof of Stake internal purse to the destination purse failed.
Internal error: a BlockTime
was unexpectedly out of sequence.
Internal error: stakes were unexpectedly empty.
Internal error: the PoS contract's payment purse wasn't found.
Internal error: the PoS contract's payment purse key was the wrong type.
Internal error: couldn't retrieve the balance for the PoS contract's payment purse.
Internal error: the PoS contract's bonding purse wasn't found.
Internal error: the PoS contract's bonding purse key was the wrong type.
Internal error: the PoS contract's refund purse key was the wrong type.
Internal error: the PoS contract's rewards purse wasn't found.
Internal error: the PoS contract's rewards purse key was the wrong type.
Internal error: failed to deserialize the stake's key.
Internal error: failed to deserialize the stake's balance.
The invoked PoS function can only be called by system contracts, but was called by a user contract.
Internal error: while finalizing payment, the amount spent exceeded the amount available.
Internal error: while finalizing payment, failed to pay the validators (the transfer from the PoS contract's payment purse to rewards purse failed).
Internal error: while finalizing payment, failed to refund the caller's purse (the transfer from the PoS contract's payment purse to refund purse or account's main purse failed).
PoS contract's "set_refund_purse" method can only be called by the payment code of a deploy, but was called by the session code.
Raised when the system is unable to determine purse balance.
Raised when the system is unable to put named key.
Raised when the system is unable to remove given named key.
Failed to transfer funds.
Trait Implementations
impl CLTyped for Error
[src]
impl Clone for Error
[src]
impl Copy for Error
[src]
impl Debug for Error
[src]
impl Display for Error
[src]
impl Eq for Error
[src]
impl Fail for Error
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
[src]
impl From<Error> for ApiError
[src]
impl From<Error> for Error
[src]
impl PartialEq<Error> for Error
[src]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
impl ToBytes for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
[src]
impl Send for Error
[src]
impl Sync for Error
[src]
impl Unpin for Error
[src]
impl UnwindSafe for Error
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,