pub enum MachineError<'a, V>where
V: Eval<'a>,{
Show 13 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>),
MaxConstrTagExceeded(&'a Value<'a, V>),
NoCostForBuiltin(DefaultFunction),
}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>)
MaxConstrTagExceeded(&'a Value<'a, V>)
NoCostForBuiltin(DefaultFunction)
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 expected_array(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
pub fn empty_byte_array() -> Self
pub fn read_bit_out_of_bounds(index: &'a Integer, size: usize) -> Self
pub fn write_bits_out_of_bounds(index: &'a Integer, size: usize) -> Self
pub fn outside_byte_bounds(integer: &'a Integer) -> Self
pub fn outside_usize_bounds(integer: &'a Integer) -> Self
pub fn replicate_byte_negative_size(integer: &'a Integer) -> Self
pub fn replicate_byte_size_too_big(integer: &'a Integer, maximum: i64) -> Self
pub fn replicate_byte_negative_input(integer: &'a Integer) -> Self
pub fn index_array_out_of_bounds(index: &'a Integer, size: usize) -> Self
pub fn serialization_error(data: &'a PlutusData<'a>) -> 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> UnsafeUnpin 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