Enum snarkvm_dpc::errors::account::AccountError
source · [−]pub enum AccountError {
AnyhowError(Error),
Bech32Error(Error),
Crate(&'static str, String),
EncryptionError(EncryptionError),
InvalidByteLength(usize),
InvalidCharacterLength(usize),
InvalidPrefix(String),
InvalidPrefixBytes(Vec<u8>),
InvalidVariant,
Message(String),
PRFError(PRFError),
SignatureError(SignatureError),
}
Variants
AnyhowError(Error)
Bech32Error(Error)
Crate(&'static str, String)
EncryptionError(EncryptionError)
InvalidByteLength(usize)
InvalidCharacterLength(usize)
InvalidPrefix(String)
InvalidPrefixBytes(Vec<u8>)
InvalidVariant
Message(String)
PRFError(PRFError)
SignatureError(SignatureError)
Trait Implementations
sourceimpl Debug for AccountError
impl Debug for AccountError
sourceimpl Display for AccountError
impl Display for AccountError
sourceimpl Error for AccountError
impl Error for AccountError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<AccountError> for Error
impl From<AccountError> for Error
sourcefn from(error: AccountError) -> Self
fn from(error: AccountError) -> Self
Performs the conversion.
sourceimpl From<AccountError> for RecordError
impl From<AccountError> for RecordError
sourcefn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Performs the conversion.
sourceimpl From<AccountError> for VMError
impl From<AccountError> for VMError
sourcefn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Performs the conversion.
sourceimpl From<EncryptionError> for AccountError
impl From<EncryptionError> for AccountError
sourcefn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Performs the conversion.
sourceimpl From<FromBase58Error> for AccountError
impl From<FromBase58Error> for AccountError
sourcefn from(error: FromBase58Error) -> Self
fn from(error: FromBase58Error) -> Self
Performs the conversion.
sourceimpl From<PRFError> for AccountError
impl From<PRFError> for AccountError
sourceimpl From<SignatureError> for AccountError
impl From<SignatureError> for AccountError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl !UnwindSafe for AccountError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more