Enum near_primitives::errors::RuntimeError
source · [−]pub enum RuntimeError {
UnexpectedIntegerOverflow,
InvalidTxError(InvalidTxError),
StorageError(StorageError),
BalanceMismatchError(BalanceMismatchError),
ReceiptValidationError(ReceiptValidationError),
ValidatorError(EpochError),
}Expand description
Error returned from Runtime::apply
Variants
UnexpectedIntegerOverflow
An unexpected integer overflow occurred. The likely issue is an invalid state or the transition.
InvalidTxError(InvalidTxError)
An error happened during TX verification and account charging. It’s likely the chunk is invalid. and should be challenged.
StorageError(StorageError)
Unexpected error which is typically related to the node storage corruption. It’s possible the input state is invalid or malicious.
BalanceMismatchError(BalanceMismatchError)
An error happens if check_balance fails, which is likely an indication of an invalid state.
ReceiptValidationError(ReceiptValidationError)
The incoming receipt didn’t pass the validation, it’s likely a malicious behaviour.
ValidatorError(EpochError)
Error when accessing validator information. Happens inside epoch manager.
Trait Implementations
sourceimpl Clone for RuntimeError
impl Clone for RuntimeError
sourcefn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RuntimeError
impl Debug for RuntimeError
sourceimpl Display for RuntimeError
impl Display for RuntimeError
sourceimpl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BalanceMismatchError> for RuntimeError
impl From<BalanceMismatchError> for RuntimeError
sourcefn from(e: BalanceMismatchError) -> Self
fn from(e: BalanceMismatchError) -> Self
Converts to this type from the input type.
sourceimpl From<EpochError> for RuntimeError
impl From<EpochError> for RuntimeError
sourcefn from(e: EpochError) -> Self
fn from(e: EpochError) -> Self
Converts to this type from the input type.
sourceimpl From<IntegerOverflowError> for RuntimeError
impl From<IntegerOverflowError> for RuntimeError
sourcefn from(_: IntegerOverflowError) -> Self
fn from(_: IntegerOverflowError) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidTxError> for RuntimeError
impl From<InvalidTxError> for RuntimeError
sourcefn from(e: InvalidTxError) -> Self
fn from(e: InvalidTxError) -> Self
Converts to this type from the input type.
sourceimpl From<StorageError> for RuntimeError
impl From<StorageError> for RuntimeError
sourcefn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<RuntimeError> for RuntimeError
impl PartialEq<RuntimeError> for RuntimeError
sourcefn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
impl Eq for RuntimeError
impl StructuralEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more