Macro fuel_core_storage::not_found

source ·
macro_rules! not_found {
    ($name: literal) => { ... };
    ($ty: path) => { ... };
}
Expand description

Creates StorageError::NotFound error with file and line information inside.

§Examples

use fuel_core_storage::not_found;
use fuel_core_storage::tables::Messages;

let string_type = not_found!("BlockId");
let mappable_type = not_found!(Messages);
let mappable_path = not_found!(fuel_core_storage::tables::Messages);