#[non_exhaustive]
pub enum LangError {
CouldNotReadInput,
}
Expand description
An error emitted by the smart contracting language.
This is different than errors from:
- Errors from the contract, which are programmer defined
- Errors from the underlying execution environment (e.g
pallet-contracts
)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CouldNotReadInput
Failed to read execution input for the dispatchable.
Trait Implementations§
source§impl Decode for LangError
impl Decode for LangError
source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<LangError, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<LangError, Error>where __CodecInputEdqy: Input,
Attempt to deserialise the value from input.
source§impl Encode for LangError
impl Encode for LangError
source§fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where __CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl PartialEq<LangError> for LangError
impl PartialEq<LangError> for LangError
impl Copy for LangError
impl EncodeLike<LangError> for LangError
impl Eq for LangError
impl StructuralEq for LangError
impl StructuralPartialEq for LangError
Auto Trait Implementations§
impl RefUnwindSafe for LangError
impl Send for LangError
impl Sync for LangError
impl Unpin for LangError
impl UnwindSafe for LangError
Blanket Implementations§
§impl<T, const KEY: u32, ParentKey> AutoStorableHint<ManualKey<KEY, ParentKey>> for Twhere
T: StorableHint<ParentKey> + StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>,
ParentKey: StorageKey,
impl<T, const KEY: u32, ParentKey> AutoStorableHint<ManualKey<KEY, ParentKey>> for Twhere T: StorableHint<ParentKey> + StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>, ParentKey: StorageKey,
§type Type = <T as StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>>::Type
type Type = <T as StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>>::Type
Storable type with storage key inside.
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
impl<P, Key> StorableHint<Key> for Pwhere P: Packed, Key: StorageKey,
§type PreferredKey = AutoKey
type PreferredKey = AutoKey
The storage key that the type prefers. It can be overwritten by an auto-generated storage key.