Enum near_vm_logic::HostError[][src]

pub enum HostError {
    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,
    },
}

Variants

BadUTF16

String encoding is bad UTF-16 sequence

BadUTF8

String encoding is bad UTF-8 sequence

GasExceeded

Exceeded the prepaid gas

GasLimitExceeded

Exceeded the maximum amount of gas allowed to burn per contract

BalanceExceeded

Exceeded the account balance

EmptyMethodName

Tried to call an empty method name

GuestPanic

Smart contract panicked

Fields of GuestPanic

panic_msg: String
IntegerOverflow

IntegerOverflow happened during a contract execution

InvalidPromiseIndex

promise_idx does not correspond to existing promises

Fields of InvalidPromiseIndex

promise_idx: u64
CannotAppendActionToJointPromise

Actions can only be appended to non-joint promise.

CannotReturnJointPromise

Returning joint promise is currently prohibited

InvalidPromiseResultIndex

Accessed invalid promise result index

Fields of InvalidPromiseResultIndex

result_idx: u64
InvalidRegisterId

Accessed invalid register id

Fields of InvalidRegisterId

register_id: u64
IteratorWasInvalidated

Iterator iterator_index was invalidated after its creation by performing a mutable operation on trie

Fields of IteratorWasInvalidated

iterator_index: u64
MemoryAccessViolation

Accessed memory outside the bounds

InvalidReceiptIndex

VM Logic returned an invalid receipt index

Fields of InvalidReceiptIndex

receipt_index: u64
InvalidIteratorIndex

Iterator index iterator_index does not exist

Fields of InvalidIteratorIndex

iterator_index: u64
InvalidAccountId

VM Logic returned an invalid account id

InvalidMethodName

VM Logic returned an invalid method name

InvalidPublicKey

VM Logic provided an invalid public key

ProhibitedInView

method_name is not allowed in view calls

Fields of ProhibitedInView

method_name: String
NumberOfLogsExceeded

The total number of logs will exceed the limit.

Fields of NumberOfLogsExceeded

limit: u64
KeyLengthExceeded

The storage key length exceeded the limit.

Fields of KeyLengthExceeded

length: u64limit: u64
ValueLengthExceeded

The storage value length exceeded the limit.

Fields of ValueLengthExceeded

length: u64limit: u64
TotalLogLengthExceeded

The total log length exceeded the limit.

Fields of TotalLogLengthExceeded

length: u64limit: u64
NumberPromisesExceeded

The maximum number of promises within a FunctionCall exceeded the limit.

Fields of NumberPromisesExceeded

number_of_promises: u64limit: u64
NumberInputDataDependenciesExceeded

The maximum number of input data dependencies exceeded the limit.

Fields of NumberInputDataDependenciesExceeded

number_of_input_data_dependencies: u64limit: u64
ReturnedValueLengthExceeded

The returned value length exceeded the limit.

Fields of ReturnedValueLengthExceeded

length: u64limit: u64
ContractSizeExceeded

The contract size for DeployContract action exceeded the limit.

Fields of ContractSizeExceeded

size: u64limit: u64
Deprecated

The host function was deprecated.

Fields of Deprecated

method_name: String

Trait Implementations

impl BorshDeserialize for HostError where
    String: BorshDeserialize,
    u64: BorshDeserialize
[src]

impl BorshSerialize for HostError where
    String: BorshSerialize,
    u64: BorshSerialize
[src]

impl Clone for HostError[src]

impl Debug for HostError[src]

impl<'de> Deserialize<'de> for HostError[src]

impl Display for HostError[src]

impl Eq for HostError[src]

impl From<HostError> for VMLogicError[src]

impl PartialEq<HostError> for HostError[src]

impl Serialize for HostError[src]

impl StructuralEq for HostError[src]

impl StructuralPartialEq for HostError[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.