# Functions
As is a utility function to call std error lib `As` function.
No description provided by the author
Find recursively unwraps the error and returns the first CodedError that matches the specified error code.
FindFailure recursively unwraps the error and returns the first CodedFailure that matches the specified error code.
HandleRuntimeError handles runtime errors and separates errors generated by runtime from fvm errors (e.g.
HasErrorCode returns true if the error or one of its nested errors matches the specified error code.
HasFailureCode returns true if the error or one of its nested errors matches the specified failure code.
Is is a utility function to call std error lib `Is` function for instance equality checks.
IsAccountNotFoundError returns true if error has this type.
IsAccountPublicKeyNotFoundError returns true if error has this type.
No description provided by the author
No description provided by the author
IsComputationLimitExceededError returns true if error has this code.
IsEVMError returns true if error is an EVM error.
IsFailure returns true if the error is un-coded, or if the error contains a failure code.
IsInsufficientPayerBalanceError returns true if error has this code.
No description provided by the author
No description provided by the author
No description provided by the author
IsLedgerFailure returns true if the error or any of the wrapped errors is a ledger failure.
No description provided by the author
IsMemoryLimitExceededError returns true if error has this code.
No description provided by the author
No description provided by the author
IsTransactionFeeDeductionFailedError returns true if error has this code.
No description provided by the author
NewAccountAlreadyExistsError constructs a new CodedError.
NewAccountAuthorizationErrorf constructs a new CodedError which indicates that an authorization issue either: - a transaction is missing a required signature to authorize access to an account, or - a transaction doesn't have authorization to performe some operations like account creation.
No description provided by the author
NewAccountPublicKeyLimitError constructs a new CodedError.
NewAccountPublicKeyNotFoundError constructs a new CodedError.
NewBlockFinderFailure constructs a new CodedError which captures a fatal caused by block finder.
No description provided by the author
NewCadenceRuntimeError constructs a new CodedError which captures a collection of errors provided by cadence runtime.
No description provided by the author
No description provided by the author
NewComputationLimitExceededError constructs a new CodedError which indicates that computation has exceeded its limit.
NewContractNotFoundError constructs a new ErrContractNotFoundError error.
NewCouldNotGetExecutionParameterFromStateError constructs a new CodedError which indicates that computation has exceeded its limit.
NewDerivedDataCacheImplementationFailure indicate an implementation error in the derived data cache.
NewEncodingFailuref formats and returns a new EncodingFailure.
No description provided by the author
NewEventEncodingError construct a new CodedError which indicates that encoding event has failed.
NewEventLimitExceededError constructs a CodedError which indicates that the transaction has produced events with size more than limit.
NewEVMError constructs a new CodedError which captures a collection of errors provided by (non-fatal) evm runtime.
NewEVMFailure constructs a new CodedFailure which captures a fatal caused by the EVM.
NewInsufficientPayerBalanceError constructs a new CodedError which indicates that the payer has insufficient balance to attempt transaction execution.
NewInvalidAddressErrorf constructs a new CodedError which indicates that a transaction references an invalid flow Address in either the Authorizers or Payer field.
NewInvalidArgumentErrorf constructs a new CodedError which indicates that a transaction includes invalid arguments.
NewInvalidEnvelopeSignatureError constructs a new CodedError which indicates that signature verification for a envelope key in this transaction has failed.
NewInvalidInternalStateAccessError constructs a new CodedError which indicates that the cadence program attempted to directly access flow's internal state.
NewInvalidLocationErrorf constructs a new CodedError which indicates an invalid location is passed.
NewInvalidPayloadSignatureError constructs a new CodedError which indicates that signature verification for a key in this transaction has failed.
NewInvalidProposalSeqNumberError constructs a new InvalidProposalSeqNumberError.
NewInvalidProposalSignatureError constructs a new CodedError which indicates that no valid signature is provided for the proposal key.
NewLedgerFailure constructs a new CodedError which captures a fatal error cause by ledger failures.
NewLedgerInteractionLimitExceededError constructs a CodeError.
NewMemoryLimitExceededError constructs a new CodedError which indicates that execution has exceeded its memory limits.
NewOperationAuthorizationErrorf constructs a new CodedError which indicates not enough authorization to perform an operations like account creation or smart contract deployment.
NewOperationNotSupportedError construct a new CodedError.
NewParseRestrictedModeInvalidAccessFailure constructs a CodedError which captures a fatal caused by Cadence accessing an unexpected environment operation while it is parsing programs.
indicates that a there was an error checking the payers balance.
NewRandomSourceFailure indicate an implementation error in the random source provider.
NewScriptExecutionCancelledError construct a new CodedError which indicates that Cadence Script execution has been cancelled (e.g.
NewScriptExecutionTimedOutError construct a new CodedError which indicates that Cadence Script execution has been taking more time than what is allowed.
NewStateKeySizeLimitError constructs a CodedError which indicates that the provided key has exceeded the size limit allowed by the storage.
NewStateMergeFailure constructs a new CodedError which captures a fatal caused by state merge.
NewStateValueSizeLimitError constructs a CodedError which indicates that the provided value has exceeded the size limit allowed by the storage.
NewStorageCapacityExceededError constructs a new CodedError which indicates that an account used more storage than it has storage capacity.
NewTransactionFeeDeductionFailedError constructs a new CodedError which indicates that a there was an error deducting transaction fees from the transaction Payer.
No description provided by the author
NewValueErrorf constructs a new CodedError which indicates a value is not valid value.
SplitErrorTypes splits the error into fatal (failures) and non-fatal errors.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
accounts errors 1200 - 1250 Deprecated: No longer used.
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: No longer used.
No description provided by the author
No description provided by the author
No description provided by the author
contract errors 1250 - 1300 Deprecated: No longer used.
Deprecated: No longer used.
No description provided by the author
No description provided by the author
Deprecated: No longer used.
No description provided by the author
No description provided by the author
execution errors 1100 - 1200 Deprecated: No longer used.
Deprecated: No longer used.
Deprecated: No longer used.
base errors 1050 - 1100 Deprecated: No longer used.
Deprecated: No longer used.
1117 was never deployed and is free to use.
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: No longer used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: No longer used.
Deprecated: No longer used.
Deprecated: No longer used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
tx validation errors 1000 - 1049 Deprecated: no longer in use.
No description provided by the author
fvm std lib errors 1300-1400.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Deprecated: No longer used.
No description provided by the author
Deprecated: No longer used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Utility object for collecting Processor errors.
EVMError captures any non-fatal EVM error.
InvalidProposalSeqNumberError indicates that proposal key sequence number does not match the on-chain value.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author