Enum gstd::errors::MessageError
source · #[non_exhaustive]#[repr(u32)]pub enum MessageError {
Show 15 variants
MaxMessageSizeExceed = 300,
OutgoingMessagesAmountLimitExceeded = 301,
DuplicateReply = 302,
DuplicateWaking = 303,
LateAccess = 304,
OutOfBounds = 305,
DuplicateInit = 306,
InsufficientValue = 307,
InsufficientGasLimit = 308,
DuplicateReplyDeposit = 309,
IncorrectMessageForReplyDeposit = 310,
OutgoingMessagesBytesLimitExceeded = 311,
OutOfBoundsInputSliceOffset = 312,
OutOfBoundsInputSliceLength = 313,
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.
OutgoingMessagesBytesLimitExceeded = 311
The error occurs when program tries to send messages with total size bigger than allowed.
OutOfBoundsInputSliceOffset = 312
The error occurs when a wrong offset of the input buffer (currently executing message payload) is provided.
OutOfBoundsInputSliceLength = 313
The error occurs when a too big length value to form a slice (range) of the input buffer (currently executing message payload) is provided.
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§impl PartialOrd for MessageError
impl PartialOrd for MessageError
source§impl Sequence for MessageError
impl Sequence for MessageError
source§const CARDINALITY: usize = 15usize
const CARDINALITY: usize = 15usize
Self
. Read moresource§fn next(&self) -> Option<MessageError>
fn next(&self) -> Option<MessageError>
source§fn previous(&self) -> Option<MessageError>
fn previous(&self) -> Option<MessageError>
impl Copy for MessageError
impl Eq for MessageError
impl StructuralPartialEq for MessageError
Auto Trait Implementations§
impl Freeze for MessageError
impl RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnwindSafe for MessageError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)