pub enum MachineError<'a, V>where
V: Eval<'a>,{
ExplicitErrorTerm,
NonFunctionApplication(&'a Value<'a, V>, &'a Value<'a, V>),
NotAConstant(&'a Value<'a, V>),
OpenTermEvaluated(&'a Term<'a, V>),
OutOfExError(ExBudget),
UnexpectedBuiltinTermArgument(&'a Term<'a, V>),
NonPolymorphicInstantiation(&'a Value<'a, V>),
BuiltinTermArgumentExpected(&'a Term<'a, V>),
NonConstrScrutinized(&'a Value<'a, V>),
MissingCaseBranch(&'a [&'a Term<'a, V>], &'a Value<'a, V>),
Runtime(RuntimeError<'a>),
}Variants§
ExplicitErrorTerm
NonFunctionApplication(&'a Value<'a, V>, &'a Value<'a, V>)
NotAConstant(&'a Value<'a, V>)
OpenTermEvaluated(&'a Term<'a, V>)
OutOfExError(ExBudget)
UnexpectedBuiltinTermArgument(&'a Term<'a, V>)
NonPolymorphicInstantiation(&'a Value<'a, V>)
BuiltinTermArgumentExpected(&'a Term<'a, V>)
NonConstrScrutinized(&'a Value<'a, V>)
MissingCaseBranch(&'a [&'a Term<'a, V>], &'a Value<'a, V>)
Runtime(RuntimeError<'a>)
Implementations§
Source§impl<'a, V> MachineError<'a, V>where
V: Eval<'a>,
impl<'a, V> MachineError<'a, V>where
V: Eval<'a>,
pub fn runtime(runtime_error: RuntimeError<'a>) -> Self
pub fn type_mismatch(expected: Type<'a>, constant: &'a Constant<'a>) -> Self
pub fn mk_cons_type_mismatch(constant: &'a Constant<'a>) -> Self
pub fn expected_pair(constant: &'a Constant<'a>) -> Self
pub fn expected_list(constant: &'a Constant<'a>) -> Self
pub fn empty_list(constant: &'a [&'a Constant<'a>]) -> Self
pub fn byte_string_out_of_bounds( byte_string: &'a [u8], index: &'a Integer, ) -> Self
pub fn not_data(constant: &'a Constant<'a>) -> Self
pub fn malformed_data(plutus_data: &'a PlutusData<'a>) -> Self
pub fn unexpected_ed25519_public_key_length(length: TryFromSliceError) -> Self
pub fn unexpected_ed25519_signature_length(length: TryFromSliceError) -> Self
pub fn division_by_zero( numerator: &'a Integer, denominator: &'a Integer, ) -> Self
pub fn byte_string_cons_not_a_byte(byte: &'a Integer) -> Self
pub fn secp256k1(error: Error) -> Self
pub fn decode_utf8(error: Utf8Error) -> Self
pub fn bls(error: BlsError) -> Self
pub fn hash_to_curve_dst_too_big() -> Self
pub fn integer_to_byte_string_size_too_big( integer: &'a Integer, maximum: i64, ) -> Self
pub fn integer_to_byte_string_size_too_small( integer: &'a Integer, minimum: usize, ) -> Self
pub fn integer_to_byte_string_negative_input(integer: &'a Integer) -> Self
pub fn integer_to_byte_string_negative_size(integer: &'a Integer) -> Self
Trait Implementations§
Source§impl<'a, V> Debug for MachineError<'a, V>
impl<'a, V> Debug for MachineError<'a, V>
Source§impl<'a, V> Display for MachineError<'a, V>where
V: Eval<'a>,
impl<'a, V> Display for MachineError<'a, V>where
V: Eval<'a>,
Source§impl<'a, V> Error for MachineError<'a, V>
impl<'a, V> Error for MachineError<'a, V>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<'a, V> Freeze for MachineError<'a, V>
impl<'a, V> !RefUnwindSafe for MachineError<'a, V>
impl<'a, V> !Send for MachineError<'a, V>
impl<'a, V> !Sync for MachineError<'a, V>
impl<'a, V> Unpin for MachineError<'a, V>
impl<'a, V> !UnwindSafe for MachineError<'a, V>
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.