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§

source

fn duplicate_item() -> Self

Program already exists in storage.

source

fn program_not_found() -> Self

Program is not found in the storage.

source

fn not_active_program() -> Self

Program is not an instance of ActiveProgram.

source

fn cannot_find_page_data() -> Self

There is no data for specified program_id and page.

source

fn program_code_not_found() -> Self

Failed to find the program binary code.

Object Safety§

This trait is not object safe.

Implementors§