Enum snarkvm_dpc::errors::virtual_machine::VMError
source · [−]pub enum VMError {
Show 19 variants
AccountError(AccountError),
AnyhowError(Error),
BalanceInsufficient,
BalanceOverflow,
BalanceOverwritten,
CannotVerifyCommitment,
CommitmentError(CommitmentError),
ConstraintFieldError(ConstraintFieldError),
Crate(&'static str, String),
CRHError(CRHError),
EncryptionError(EncryptionError),
FromHexError(FromHexError),
IncorrectPrivateKey,
MerkleError(MerkleError),
MissingCaller(String),
ParameterError(ParameterError),
PRFError(PRFError),
SignatureError(SignatureError),
SNARKError(SNARKError),
}
Variants
AccountError(AccountError)
AnyhowError(Error)
BalanceInsufficient
BalanceOverflow
BalanceOverwritten
CannotVerifyCommitment
CommitmentError(CommitmentError)
ConstraintFieldError(ConstraintFieldError)
Crate(&'static str, String)
CRHError(CRHError)
EncryptionError(EncryptionError)
FromHexError(FromHexError)
IncorrectPrivateKey
MerkleError(MerkleError)
MissingCaller(String)
ParameterError(ParameterError)
PRFError(PRFError)
SignatureError(SignatureError)
SNARKError(SNARKError)
Trait Implementations
sourceimpl Error for VMError
impl Error for VMError
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 VMError
impl From<AccountError> for VMError
sourcefn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Performs the conversion.
sourceimpl From<CommitmentError> for VMError
impl From<CommitmentError> for VMError
sourcefn from(source: CommitmentError) -> Self
fn from(source: CommitmentError) -> Self
Performs the conversion.
sourceimpl From<ConstraintFieldError> for VMError
impl From<ConstraintFieldError> for VMError
sourcefn from(source: ConstraintFieldError) -> Self
fn from(source: ConstraintFieldError) -> Self
Performs the conversion.
sourceimpl From<EncryptionError> for VMError
impl From<EncryptionError> for VMError
sourcefn from(source: EncryptionError) -> Self
fn from(source: EncryptionError) -> Self
Performs the conversion.
sourceimpl From<FromHexError> for VMError
impl From<FromHexError> for VMError
sourcefn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Performs the conversion.
sourceimpl From<MerkleError> for VMError
impl From<MerkleError> for VMError
sourcefn from(source: MerkleError) -> Self
fn from(source: MerkleError) -> Self
Performs the conversion.
sourceimpl From<ParameterError> for VMError
impl From<ParameterError> for VMError
sourcefn from(source: ParameterError) -> Self
fn from(source: ParameterError) -> Self
Performs the conversion.
sourceimpl From<SNARKError> for VMError
impl From<SNARKError> for VMError
sourcefn from(source: SNARKError) -> Self
fn from(source: SNARKError) -> Self
Performs the conversion.
sourceimpl From<SignatureError> for VMError
impl From<SignatureError> for VMError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for VMError
impl Send for VMError
impl Sync for VMError
impl Unpin for VMError
impl !UnwindSafe for VMError
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