pub trait WrapFVMError<T> {
    // Required methods
    fn setting_err(self, name: &str) -> Result<T, Error>;
    fn validator_err(self, msg: &str) -> Result<T, Error>;
}
Expand description

Helper trait for adding custom messages to inner Fvm errors.

Required Methods§

source

fn setting_err(self, name: &str) -> Result<T, Error>

Wrap the source Error with an Error::SettingActor.

source

fn validator_err(self, msg: &str) -> Result<T, Error>

Wrap the source Error with an Error::Validator.

Implementations on Foreign Types§

source§

impl<T, E> WrapFVMError<T> for Result<T, E>where E: Into<Box<dyn Error + Send + Sync + 'static>>,

source§

fn setting_err(self, name: &str) -> Result<T, Error>

source§

fn validator_err(self, msg: &str) -> Result<T, Error>

Implementors§