[][src]Enum casperlabs_types::contracts::Error

#[repr(u8)]pub enum Error {
    PreviouslyUsedVersion,
    ContractNotFound,
    GroupAlreadyExists,
    MaxGroupsExceeded,
    MaxTotalURefsExceeded,
    GroupDoesNotExist,
    UnableToRemoveURef,
    GroupInUse,
    URefAlreadyExists,
}

Set of errors which may happen when working with contract headers.

Variants

PreviouslyUsedVersion

Attempt to override an existing or previously existing version with a new header (this is not allowed to ensure immutability of a given version).

ContractNotFound

Attempted to disable a contract that does not exist.

GroupAlreadyExists

Attempted to create a user group which already exists (use the update function to change an existing user group).

MaxGroupsExceeded

Attempted to add a new user group which exceeds the allowed maximum number of groups.

MaxTotalURefsExceeded

Attempted to add a new URef to a group, which resulted in the total number of URefs across all user groups to exceed the allowed maximum.

GroupDoesNotExist

Attempted to remove a URef from a group, which does not exist in the group.

UnableToRemoveURef

Attempted to remove unknown URef from the group.

GroupInUse

Group is use by at least one active contract.

URefAlreadyExists

URef already exists in given group.

Trait Implementations

impl Debug for Error[src]

impl From<Error> for ApiError[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.