[][src]Trait elrond_wasm::io::sc_error::ErrorMessage

pub trait ErrorMessage {
    fn with_message_slice<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R;
}

All types that can be returned as error result from smart contracts should implement this trait.

Required methods

fn with_message_slice<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R

Loading content...

Implementors

impl<'_> ErrorMessage for &'_ str[src]

impl<'a> ErrorMessage for SCError[src]

Loading content...