Enum fadroma::ensemble::EnsembleError
source · pub enum EnsembleError {
ContractError(Error),
ContractRegistry(RegistryError),
AttributeValidation(String),
Bank(String),
Staking(String),
Std(StdError),
}
Variants§
ContractError(Error)
ContractRegistry(RegistryError)
AttributeValidation(String)
Bank(String)
Staking(String)
Std(StdError)
Implementations§
source§impl EnsembleError
impl EnsembleError
sourcepub fn unwrap_contract_error(self) -> Error
pub fn unwrap_contract_error(self) -> Error
Returns the error that the executed contract returned. Panics if not a contract error.
sourcepub fn is_contract_error(&self) -> bool
pub fn is_contract_error(&self) -> bool
Returns true
if the error occurred within the contract.
false
otherwise.
Trait Implementations§
source§impl Debug for EnsembleError
impl Debug for EnsembleError
source§impl Display for EnsembleError
impl Display for EnsembleError
source§impl From<Error> for EnsembleError
impl From<Error> for EnsembleError
Auto Trait Implementations§
impl !RefUnwindSafe for EnsembleError
impl Send for EnsembleError
impl Sync for EnsembleError
impl Unpin for EnsembleError
impl !UnwindSafe for EnsembleError
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
Mutably borrows from an owned value. Read more