Enum unc_primitives::errors::RuntimeError
source · pub enum RuntimeError {
UnexpectedIntegerOverflow,
InvalidTxError(InvalidTxError),
StorageError(StorageError),
BalanceMismatchError(Box<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(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)>
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(_: IntegerOverflowError) -> Self
fn from(_: 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
source§fn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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<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.