pub enum HintError {
Show 67 variants
WrongHintData,
FailedToGetIds,
NoRegisterInReference,
CustomHint(String),
MissingConstant(&'static str),
FailedToGetConstant,
ArcTooBig(Felt, Felt, Felt, Felt),
ExcludedNot2(Felt),
ValueOutside250BitRange(Felt),
ScopeError,
VariableNotInScopeError(String),
CantCreateDictionaryOnTakenSegment(isize),
NoDictTracker(isize),
NoValueForKey(MaybeRelocatable),
NoValueForKeyFindElement(Felt),
AssertLtFelt(Felt, Felt),
FindElemMaxSize(Felt, Felt),
InvalidIndex(Felt, Felt, Felt),
KeyNotFound,
NoneApTrackingData,
InvalidTrackingGroup(usize, usize),
InvalidApValue(MaybeRelocatable),
NoInitialDict,
NoKeyInAccessIndices(Felt),
EmptyAccessIndices,
EmptyCurrentAccessIndices,
CurrentAccessIndicesNotEmpty,
WrongPrevValue(MaybeRelocatable, MaybeRelocatable, MaybeRelocatable),
NumUsedAccessesAssertFail(Felt, usize, Felt),
KeysNotEmpty,
EmptyKeys,
PtrDiffNotDivisibleByDictAccessSize,
SquashDictMaxSizeExceeded(Felt, Felt),
NAccessesTooBig(Felt),
Internal(VirtualMachineError),
BigintToUsizeFail,
UsortOutOfRange(u64, Felt),
UnexpectedPositionsDictFail,
PositionsNotFound,
PositionsLengthNotZero,
CouldntPopPositions,
LastPosNotFound,
InvalidSetRange(MaybeRelocatable, MaybeRelocatable),
FixedSizeArrayFail(usize),
AssertionFailed(String),
MismatchedDictPtr(Relocatable, Relocatable),
SecpSplitNegative(BigInt),
SecpSplitOutOfRange(BigUint),
SecpVerifyZero(BigInt),
KeccakMaxSize(Felt, Felt),
InvalidWordSize(Felt),
InvalidKeccakInputLength(Felt),
FromScopeError(ExecScopeError),
AssertNotEqualFail(MaybeRelocatable, MaybeRelocatable),
SplitIntNotZero,
SplitIntLimbOutOfRange(Felt),
InvalidKeccakStateSizeFelts(Felt),
InvalidBlockSize(Felt),
BigintToU32Fail,
BigIntToBigUintFail,
ValueOutOfRange(Felt),
AssertNNValueOutOfRange(Felt),
AssertNotZero(Felt, String),
OutOfValidRange(Felt, Felt),
ValueOutsideValidRange(Felt),
NonLeFelt(Felt, Felt),
UnknownHint(String),
}Variants§
WrongHintData
FailedToGetIds
NoRegisterInReference
CustomHint(String)
MissingConstant(&'static str)
FailedToGetConstant
ArcTooBig(Felt, Felt, Felt, Felt)
ExcludedNot2(Felt)
ValueOutside250BitRange(Felt)
ScopeError
VariableNotInScopeError(String)
CantCreateDictionaryOnTakenSegment(isize)
NoDictTracker(isize)
NoValueForKey(MaybeRelocatable)
NoValueForKeyFindElement(Felt)
AssertLtFelt(Felt, Felt)
FindElemMaxSize(Felt, Felt)
InvalidIndex(Felt, Felt, Felt)
KeyNotFound
NoneApTrackingData
InvalidTrackingGroup(usize, usize)
InvalidApValue(MaybeRelocatable)
NoInitialDict
NoKeyInAccessIndices(Felt)
EmptyAccessIndices
EmptyCurrentAccessIndices
CurrentAccessIndicesNotEmpty
WrongPrevValue(MaybeRelocatable, MaybeRelocatable, MaybeRelocatable)
NumUsedAccessesAssertFail(Felt, usize, Felt)
KeysNotEmpty
EmptyKeys
PtrDiffNotDivisibleByDictAccessSize
SquashDictMaxSizeExceeded(Felt, Felt)
NAccessesTooBig(Felt)
Internal(VirtualMachineError)
BigintToUsizeFail
UsortOutOfRange(u64, Felt)
UnexpectedPositionsDictFail
PositionsNotFound
PositionsLengthNotZero
CouldntPopPositions
LastPosNotFound
InvalidSetRange(MaybeRelocatable, MaybeRelocatable)
FixedSizeArrayFail(usize)
AssertionFailed(String)
MismatchedDictPtr(Relocatable, Relocatable)
SecpSplitNegative(BigInt)
SecpSplitOutOfRange(BigUint)
SecpVerifyZero(BigInt)
KeccakMaxSize(Felt, Felt)
InvalidWordSize(Felt)
InvalidKeccakInputLength(Felt)
FromScopeError(ExecScopeError)
AssertNotEqualFail(MaybeRelocatable, MaybeRelocatable)
SplitIntNotZero
SplitIntLimbOutOfRange(Felt)
InvalidKeccakStateSizeFelts(Felt)
InvalidBlockSize(Felt)
BigintToU32Fail
BigIntToBigUintFail
ValueOutOfRange(Felt)
AssertNNValueOutOfRange(Felt)
AssertNotZero(Felt, String)
OutOfValidRange(Felt, Felt)
ValueOutsideValidRange(Felt)
NonLeFelt(Felt, Felt)
UnknownHint(String)
Trait Implementations§
source§impl Error for HintError
impl Error for HintError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<ExecScopeError> for HintError
impl From<ExecScopeError> for HintError
source§fn from(source: ExecScopeError) -> Self
fn from(source: ExecScopeError) -> Self
Converts to this type from the input type.
source§impl From<VirtualMachineError> for HintError
impl From<VirtualMachineError> for HintError
source§fn from(source: VirtualMachineError) -> Self
fn from(source: VirtualMachineError) -> Self
Converts to this type from the input type.