Enum gear_core_errors::MessageError
source · #[non_exhaustive]#[repr(u32)]pub enum MessageError {
MaxMessageSizeExceed = 300,
OutgoingMessagesAmountLimitExceeded = 301,
DuplicateReply = 302,
DuplicateWaking = 303,
LateAccess = 304,
OutOfBounds = 305,
DuplicateInit = 306,
InsufficientValue = 307,
InsufficientGasLimit = 308,
DuplicateReplyDeposit = 309,
IncorrectMessageForReplyDeposit = 310,
InsufficientGasForDelayedSending = 399,
}
Expand description
Error using messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxMessageSizeExceed = 300
Message has bigger then allowed one message size
OutgoingMessagesAmountLimitExceeded = 301
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 = 302
The error occurs in case of attempt to send more than one replies.
DuplicateWaking = 303
The error occurs in attempt to get the same message from the waitlist again (which is waked already).
LateAccess = 304
An attempt to commit or push a payload into an already formed message.
OutOfBounds = 305
The error occurs in case of not valid identifier specified.
DuplicateInit = 306
The error occurs in attempt to initialize the same program twice within a single execution.
InsufficientValue = 307
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 = 308
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 = 309
The error occurs when program tries to create reply deposit for message that already been created within the execution.
IncorrectMessageForReplyDeposit = 310
The error occurs when program tries to create reply deposit for message that wasn’t sent within the execution or for reply.
InsufficientGasForDelayedSending = 399
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 for MessageError
impl PartialEq 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 for MessageError
impl PartialOrd 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