#[repr(u8)]pub enum Error {
PreviouslyUsedVersion = 1,
ContractNotFound = 2,
GroupAlreadyExists = 3,
MaxGroupsExceeded = 4,
MaxTotalURefsExceeded = 5,
GroupDoesNotExist = 6,
UnableToRemoveURef = 7,
GroupInUse = 8,
URefAlreadyExists = 9,
}
Expand description
Set of errors which may happen when working with contract headers.
Variants§
PreviouslyUsedVersion = 1
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 = 2
Attempted to disable a contract that does not exist.
GroupAlreadyExists = 3
Attempted to create a user group which already exists (use the update function to change an existing user group).
MaxGroupsExceeded = 4
Attempted to add a new user group which exceeds the allowed maximum number of groups.
MaxTotalURefsExceeded = 5
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 = 6
Attempted to remove a URef from a group, which does not exist in the group.
UnableToRemoveURef = 7
Attempted to remove unknown URef from the group.
GroupInUse = 8
Group is use by at least one active contract.
URefAlreadyExists = 9
URef already exists in given group.