pub enum RuntimeError<'a> {
Show 32 variants
ByteStringOutOfBounds(&'a [u8], &'a Integer),
TypeMismatch(Type<'a>, &'a Constant<'a>),
ExpectedPair(&'a Constant<'a>),
ExpectedList(&'a Constant<'a>),
ExpectedArray(&'a Constant<'a>),
NotData(&'a Constant<'a>),
MalFormedData(&'a PlutusData<'a>),
EmptyList(&'a [&'a Constant<'a>]),
UnexpectedEd25519PublicKeyLength(TryFromSliceError),
UnexpectedEd25519SignatureLength(TryFromSliceError),
DivisionByZero(&'a Integer, &'a Integer),
MkConsTypeMismatch(&'a Constant<'a>),
ByteStringConsNotAByte(&'a Integer),
Secp256k1(Error),
DecodeUtf8(Utf8Error),
Bls(BlsError),
HashToCurveDstTooBig,
IntegerToByteStringSizeTooBig(&'a Integer, i64),
IntegerToByteStringSizeTooSmall(&'a Integer, usize),
IntegerToByteStringNegativeInput(&'a Integer),
IntegerToByteStringNegativeSize(&'a Integer),
EmptyByteArray,
ReadBitOutOfBounds(&'a Integer, usize),
WriteBitsOutOfBounds(&'a Integer, usize),
OutsideByteBounds(&'a Integer),
OutsideUsizeBounds(&'a Integer),
ReplicateByteSizeTooBig(&'a Integer, i64),
ReplicateByteSizeTooSmall(&'a Integer, usize),
ReplicateByteNegativeInput(&'a Integer),
ReplicateByteNegativeSize(&'a Integer),
IndexArrayOutOfBounds(&'a Integer, usize),
SerializationError(&'a PlutusData<'a>),
}Variants§
ByteStringOutOfBounds(&'a [u8], &'a Integer)
TypeMismatch(Type<'a>, &'a Constant<'a>)
ExpectedPair(&'a Constant<'a>)
ExpectedList(&'a Constant<'a>)
ExpectedArray(&'a Constant<'a>)
NotData(&'a Constant<'a>)
MalFormedData(&'a PlutusData<'a>)
EmptyList(&'a [&'a Constant<'a>])
UnexpectedEd25519PublicKeyLength(TryFromSliceError)
UnexpectedEd25519SignatureLength(TryFromSliceError)
DivisionByZero(&'a Integer, &'a Integer)
MkConsTypeMismatch(&'a Constant<'a>)
ByteStringConsNotAByte(&'a Integer)
Secp256k1(Error)
DecodeUtf8(Utf8Error)
Bls(BlsError)
HashToCurveDstTooBig
IntegerToByteStringSizeTooBig(&'a Integer, i64)
IntegerToByteStringSizeTooSmall(&'a Integer, usize)
IntegerToByteStringNegativeInput(&'a Integer)
IntegerToByteStringNegativeSize(&'a Integer)
EmptyByteArray
ReadBitOutOfBounds(&'a Integer, usize)
WriteBitsOutOfBounds(&'a Integer, usize)
OutsideByteBounds(&'a Integer)
OutsideUsizeBounds(&'a Integer)
ReplicateByteSizeTooBig(&'a Integer, i64)
ReplicateByteSizeTooSmall(&'a Integer, usize)
ReplicateByteNegativeInput(&'a Integer)
ReplicateByteNegativeSize(&'a Integer)
IndexArrayOutOfBounds(&'a Integer, usize)
SerializationError(&'a PlutusData<'a>)
Trait Implementations§
Source§impl<'a> Debug for RuntimeError<'a>
impl<'a> Debug for RuntimeError<'a>
Source§impl<'a> Display for RuntimeError<'a>
impl<'a> Display for RuntimeError<'a>
Source§impl<'a> Error for RuntimeError<'a>
impl<'a> Error for RuntimeError<'a>
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()
Source§impl<'a> From<BlsError> for RuntimeError<'a>
impl<'a> From<BlsError> for RuntimeError<'a>
Source§impl<'a> From<Error> for RuntimeError<'a>
impl<'a> From<Error> for RuntimeError<'a>
Auto Trait Implementations§
impl<'a> Freeze for RuntimeError<'a>
impl<'a> RefUnwindSafe for RuntimeError<'a>
impl<'a> Send for RuntimeError<'a>
impl<'a> Sync for RuntimeError<'a>
impl<'a> Unpin for RuntimeError<'a>
impl<'a> UnsafeUnpin for RuntimeError<'a>
impl<'a> UnwindSafe for RuntimeError<'a>
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