Trait gear_common::program_storage::Error
source · pub trait Error {
// Required methods
fn duplicate_item() -> Self;
fn program_not_found() -> Self;
fn not_active_program() -> Self;
fn cannot_find_page_data() -> Self;
fn program_code_not_found() -> Self;
}
Expand description
Trait for ProgramStorage errors.
Contains constructors for all existing errors.
Required Methods§
sourcefn duplicate_item() -> Self
fn duplicate_item() -> Self
Program already exists in storage.
sourcefn program_not_found() -> Self
fn program_not_found() -> Self
Program is not found in the storage.
sourcefn not_active_program() -> Self
fn not_active_program() -> Self
Program is not an instance of ActiveProgram.
sourcefn cannot_find_page_data() -> Self
fn cannot_find_page_data() -> Self
There is no data for specified program_id
and page
.
sourcefn program_code_not_found() -> Self
fn program_code_not_found() -> Self
Failed to find the program binary code.
Object Safety§
This trait is not object safe.