Enum gear_core_errors::MessageError
source · #[non_exhaustive]#[repr(u32)]pub enum MessageError {
MaxMessageSizeExceed,
OutgoingMessagesAmountLimitExceeded,
DuplicateReply,
DuplicateWaking,
LateAccess,
OutOfBounds,
DuplicateInit,
InsufficientValue,
InsufficientGasLimit,
DuplicateReplyDeposit,
IncorrectMessageForReplyDeposit,
InsufficientGasForDelayedSending,
}
Expand description
Error using messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxMessageSizeExceed
Message has bigger then allowed one message size
OutgoingMessagesAmountLimitExceeded
The error “Message limit exceeded” occurs when a program attempts to send more than the maximum amount of messages allowed within a single execution (current setting - 1024).
DuplicateReply
The error occurs in case of attempt to send more than one replies.
DuplicateWaking
The error occurs in attempt to get the same message from the waitlist again (which is waked already).
LateAccess
An attempt to commit or push a payload into an already formed message.
OutOfBounds
The error occurs in case of not valid identifier specified.
DuplicateInit
The error occurs in attempt to initialize the same program twice within a single execution.
InsufficientValue
Everything less than existential deposit but greater than 0 is not considered as available balance and not saved in DB. Value between 0 and existential deposit cannot be sent in message.
InsufficientGasLimit
Everything less than mailbox threshold but greater than 0 is not considered as available gas limit and not inserted in mailbox.
Gas limit between 0 and mailbox threshold cannot be inserted in mailbox.
DuplicateReplyDeposit
The error occurs when program tries to create reply deposit for message that already been created within the execution.
IncorrectMessageForReplyDeposit
The error occurs when program tries to create reply deposit for message that wasn’t sent within the execution or for reply.
InsufficientGasForDelayedSending
An error occurs in attempt to charge gas for dispatch stash hold.
Trait Implementations§
source§impl Clone for MessageError
impl Clone for MessageError
source§fn clone(&self) -> MessageError
fn clone(&self) -> MessageError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageError
impl Debug for MessageError
source§impl Display for MessageError
impl Display for MessageError
source§impl From<MessageError> for ExtError
impl From<MessageError> for ExtError
source§fn from(original: MessageError) -> ExtError
fn from(original: MessageError) -> ExtError
source§impl Hash for MessageError
impl Hash for MessageError
source§impl Ord for MessageError
impl Ord for MessageError
source§fn cmp(&self, other: &MessageError) -> Ordering
fn cmp(&self, other: &MessageError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<MessageError> for MessageError
impl PartialEq<MessageError> for MessageError
source§fn eq(&self, other: &MessageError) -> bool
fn eq(&self, other: &MessageError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageError> for MessageError
impl PartialOrd<MessageError> for MessageError
source§fn partial_cmp(&self, other: &MessageError) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more