Enum near_vm_errors::HostError [−][src]
pub enum HostError {
Show 31 variants
BadUTF16,
BadUTF8,
GasExceeded,
GasLimitExceeded,
BalanceExceeded,
EmptyMethodName,
GuestPanic {
panic_msg: String,
},
IntegerOverflow,
InvalidPromiseIndex {
promise_idx: u64,
},
CannotAppendActionToJointPromise,
CannotReturnJointPromise,
InvalidPromiseResultIndex {
result_idx: u64,
},
InvalidRegisterId {
register_id: u64,
},
IteratorWasInvalidated {
iterator_index: u64,
},
MemoryAccessViolation,
InvalidReceiptIndex {
receipt_index: u64,
},
InvalidIteratorIndex {
iterator_index: u64,
},
InvalidAccountId,
InvalidMethodName,
InvalidPublicKey,
ProhibitedInView {
method_name: String,
},
NumberOfLogsExceeded {
limit: u64,
},
KeyLengthExceeded {
length: u64,
limit: u64,
},
ValueLengthExceeded {
length: u64,
limit: u64,
},
TotalLogLengthExceeded {
length: u64,
limit: u64,
},
NumberPromisesExceeded {
number_of_promises: u64,
limit: u64,
},
NumberInputDataDependenciesExceeded {
number_of_input_data_dependencies: u64,
limit: u64,
},
ReturnedValueLengthExceeded {
length: u64,
limit: u64,
},
ContractSizeExceeded {
size: u64,
limit: u64,
},
Deprecated {
method_name: String,
},
ECRecoverError {
msg: String,
},
}
Variants
String encoding is bad UTF-16 sequence
String encoding is bad UTF-8 sequence
Exceeded the prepaid gas
Exceeded the maximum amount of gas allowed to burn per contract
Exceeded the account balance
Tried to call an empty method name
Smart contract panicked
Fields of GuestPanic
panic_msg: String
IntegerOverflow happened during a contract execution
promise_idx
does not correspond to existing promises
Fields of InvalidPromiseIndex
promise_idx: u64
Actions can only be appended to non-joint promise.
Returning joint promise is currently prohibited
Accessed invalid promise result index
Fields of InvalidPromiseResultIndex
result_idx: u64
Accessed invalid register id
Fields of InvalidRegisterId
register_id: u64
Iterator iterator_index
was invalidated after its creation by performing a mutable operation on trie
Fields of IteratorWasInvalidated
iterator_index: u64
Accessed memory outside the bounds
VM Logic returned an invalid receipt index
Fields of InvalidReceiptIndex
receipt_index: u64
Iterator index iterator_index
does not exist
Fields of InvalidIteratorIndex
iterator_index: u64
VM Logic returned an invalid account id
VM Logic returned an invalid method name
VM Logic provided an invalid public key
method_name
is not allowed in view calls
Fields of ProhibitedInView
method_name: String
The total number of logs will exceed the limit.
Fields of NumberOfLogsExceeded
limit: u64
The storage key length exceeded the limit.
The storage value length exceeded the limit.
The total log length exceeded the limit.
The maximum number of promises within a FunctionCall exceeded the limit.
The maximum number of input data dependencies exceeded the limit.
The returned value length exceeded the limit.
The contract size for DeployContract action exceeded the limit.
The host function was deprecated.
Fields of Deprecated
method_name: String
General errors for ECDSA recover.
Fields of ECRecoverError
msg: String
Trait Implementations
impl BorshDeserialize for HostError where
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for HostError where
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
impl BorshSerialize for HostError where
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for HostError where
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for HostError
impl UnwindSafe for HostError
Blanket Implementations
Mutably borrows from an owned value. Read more