Struct anchor_lang::error::ProgramErrorWithOrigin
source · pub struct ProgramErrorWithOrigin {
pub program_error: ProgramError,
pub error_origin: Option<ErrorOrigin>,
pub compared_values: Option<ComparedValues>,
}
Fields§
§program_error: ProgramError
§error_origin: Option<ErrorOrigin>
§compared_values: Option<ComparedValues>
Implementations§
source§impl ProgramErrorWithOrigin
impl ProgramErrorWithOrigin
pub fn log(&self)
pub fn with_source(self, source: Source) -> Self
pub fn with_account_name(self, account_name: impl ToString) -> Self
Trait Implementations§
source§impl Debug for ProgramErrorWithOrigin
impl Debug for ProgramErrorWithOrigin
source§impl Display for ProgramErrorWithOrigin
impl Display for ProgramErrorWithOrigin
source§impl From<ProgramError> for ProgramErrorWithOrigin
impl From<ProgramError> for ProgramErrorWithOrigin
source§fn from(program_error: ProgramError) -> Self
fn from(program_error: ProgramError) -> Self
Converts to this type from the input type.
source§impl From<ProgramErrorWithOrigin> for Error
impl From<ProgramErrorWithOrigin> for Error
source§fn from(pe: ProgramErrorWithOrigin) -> Self
fn from(pe: ProgramErrorWithOrigin) -> Self
Converts to this type from the input type.