Struct anchor_lang::error::AnchorError
source · pub struct AnchorError {
pub error_name: String,
pub error_code_number: u32,
pub error_msg: String,
pub error_origin: Option<ErrorOrigin>,
pub compared_values: Option<ComparedValues>,
}
Fields§
§error_name: String
§error_code_number: u32
§error_msg: String
§error_origin: Option<ErrorOrigin>
§compared_values: Option<ComparedValues>
Implementations§
source§impl AnchorError
impl AnchorError
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 AnchorError
impl Debug for AnchorError
source§impl Display for AnchorError
impl Display for AnchorError
source§impl From<AnchorError> for Error
impl From<AnchorError> for Error
source§fn from(ae: AnchorError) -> Self
fn from(ae: AnchorError) -> Self
Converts to this type from the input type.
source§impl PartialEq for AnchorError
impl PartialEq for AnchorError
Two AnchorError
s are equal when they have the same error code
impl Eq for AnchorError
Auto Trait Implementations§
impl RefUnwindSafe for AnchorError
impl Send for AnchorError
impl Sync for AnchorError
impl Unpin for AnchorError
impl UnwindSafe for AnchorError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more