pub trait HasModuleError {
    fn module_error_indices(&self) -> Option<(u8, u8)>;
}
Expand description

This trait is automatically implemented for the generated DispatchError, so that we can pluck out information about the Module error variant, if` it exists.

Required methods

If the error has a Module variant, return a tuple of the pallet index and error index. Else, return None.

Implementors