Enum near_primitives::errors::RuntimeError
source · pub enum RuntimeError {
UnexpectedIntegerOverflow(String),
InvalidTxError(InvalidTxError),
StorageError(StorageError),
BalanceMismatchError(Box<BalanceMismatchError>),
ReceiptValidationError(ReceiptValidationError),
ValidatorError(EpochError),
}Expand description
Error returned from Runtime::apply
Variants§
UnexpectedIntegerOverflow(String)
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(Box<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§
source§impl Clone for RuntimeError
impl Clone for RuntimeError
source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RuntimeError
impl Debug for RuntimeError
source§impl Display for RuntimeError
impl Display for RuntimeError
source§impl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BalanceMismatchError> for RuntimeError
impl From<BalanceMismatchError> for RuntimeError
source§fn from(e: BalanceMismatchError) -> Self
fn from(e: BalanceMismatchError) -> Self
Converts to this type from the input type.
source§impl From<EpochError> for RuntimeError
impl From<EpochError> for RuntimeError
source§fn from(e: EpochError) -> Self
fn from(e: EpochError) -> Self
Converts to this type from the input type.
source§impl From<IntegerOverflowError> for RuntimeError
impl From<IntegerOverflowError> for RuntimeError
source§fn from(err: IntegerOverflowError) -> Self
fn from(err: IntegerOverflowError) -> Self
Converts to this type from the input type.
source§impl From<InvalidTxError> for RuntimeError
impl From<InvalidTxError> for RuntimeError
source§fn from(e: InvalidTxError) -> Self
fn from(e: InvalidTxError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for RuntimeError
impl From<StorageError> for RuntimeError
source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl Eq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more