use thiserror::Error;
#[derive(Clone, Error, Debug)]
pub enum Error {
#[error("Failed to build storage: {0}")]
StorageBuilding(String),
#[error("Loading the contract bundle has failed: {0}")]
BundleLoadFailed(String),
}
#[non_exhaustive]
#[repr(u32)]
#[derive(
Debug,
Copy,
Clone,
PartialEq,
Eq,
parity_scale_codec::Encode,
parity_scale_codec::Decode,
scale_info::TypeInfo,
Error,
)]
pub enum LangError {
#[error("Failed to read execution input for the dispatchable.")]
CouldNotReadInput = 1u32,
}
pub type MessageResult<T> = Result<T, LangError>;