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 resume_session_not_found() -> Self;
    fn not_session_owner() -> Self;
    fn resume_session_failed() -> Self;
    fn program_code_not_found() -> Self;
    fn duplicate_resume_session() -> 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 resume_session_not_found() -> Self

Resume session is not found in the storage.

source

fn not_session_owner() -> Self

Specified user is not an owner of the resume session.

source

fn resume_session_failed() -> Self

Failed to resume the program due to incorrect provided data.

source

fn program_code_not_found() -> Self

Failed to find the program binary code.

source

fn duplicate_resume_session() -> Self

Resume session with the specified id already exists in storage.

Object Safety§

This trait is not object safe.

Implementors§