Documentation ¶
Index ¶
- Variables
- type AccountFrozenError
- type EncodingUnsupportedValueError
- type Error
- type EventLimitExceededError
- type ExecutionError
- type FVMInternalError
- type InvalidHashAlgorithmError
- type InvalidProposalKeyMissingSignatureError
- type InvalidProposalKeyPublicKeyDoesNotExistError
- type InvalidProposalKeyPublicKeyRevokedError
- type InvalidProposalKeySequenceNumberError
- type InvalidSignaturePublicKeyDoesNotExistError
- type InvalidSignaturePublicKeyRevokedError
- type InvalidSignatureVerificationError
- type MissingPayerError
- type MissingSignatureError
- type StorageCapacityExceededError
Constants ¶
This section is empty.
Variables ¶
var ErrAccountNotFound = errors.New("account not found")
var ErrInvalidHashAlgorithm = errors.New("invalid hash algorithm")
Functions ¶
This section is empty.
Types ¶
type AccountFrozenError ¶
func (*AccountFrozenError) Code ¶
func (e *AccountFrozenError) Code() uint32
func (*AccountFrozenError) Error ¶
func (e *AccountFrozenError) Error() string
type EncodingUnsupportedValueError ¶
type EncodingUnsupportedValueError struct { Value interpreter.Value Path []string }
EncodingUnsupportedValueError indicates that Cadence attempted to encode a value that is not supported.
func (*EncodingUnsupportedValueError) Code ¶
func (e *EncodingUnsupportedValueError) Code() uint32
func (*EncodingUnsupportedValueError) Error ¶
func (e *EncodingUnsupportedValueError) Error() string
type Error ¶
An Error represents a non-fatal error that is expected during normal operation of the virtual machine.
VM errors are distinct from fatal errors, which indicate an unexpected failure in the VM (i.e. storage, stack overflow).
Each VM error is identified by a unique error code that is returned to the user.
type EventLimitExceededError ¶
EventLimitExceededError indicates that the transaction has produced events with size more than limit.
func (*EventLimitExceededError) Code ¶
func (e *EventLimitExceededError) Code() uint32
Code returns the error code for this error
func (*EventLimitExceededError) Error ¶
func (e *EventLimitExceededError) Error() string
type ExecutionError ¶
func (*ExecutionError) Code ¶
func (e *ExecutionError) Code() uint32
func (*ExecutionError) Error ¶
func (e *ExecutionError) Error() string
type FVMInternalError ¶
type FVMInternalError struct {
Msg string
}
FVMInternalError indicates that an internal error occurs during tx execution.
func (*FVMInternalError) Code ¶
func (e *FVMInternalError) Code() uint32
func (*FVMInternalError) Error ¶
func (e *FVMInternalError) Error() string
type InvalidHashAlgorithmError ¶
type InvalidHashAlgorithmError struct { Address flow.Address KeyIndex uint64 HashAlgo hash.HashingAlgorithm }
An InvalidHashAlgorithmError indicates that a given key has an invalid hash algorithm.
func (*InvalidHashAlgorithmError) Code ¶
func (e *InvalidHashAlgorithmError) Code() uint32
func (*InvalidHashAlgorithmError) Error ¶
func (e *InvalidHashAlgorithmError) Error() string
type InvalidProposalKeyMissingSignatureError ¶
A InvalidProposalKeyMissingSignatureError indicates that a proposal key does not have a valid signature.
func (*InvalidProposalKeyMissingSignatureError) Code ¶
func (e *InvalidProposalKeyMissingSignatureError) Code() uint32
func (*InvalidProposalKeyMissingSignatureError) Error ¶
func (e *InvalidProposalKeyMissingSignatureError) Error() string
type InvalidProposalKeyPublicKeyDoesNotExistError ¶
A InvalidProposalKeyPublicKeyDoesNotExistError indicates that proposal key specifies a nonexistent public key.
func (*InvalidProposalKeyPublicKeyDoesNotExistError) Code ¶
func (e *InvalidProposalKeyPublicKeyDoesNotExistError) Code() uint32
func (*InvalidProposalKeyPublicKeyDoesNotExistError) Error ¶
func (e *InvalidProposalKeyPublicKeyDoesNotExistError) Error() string
type InvalidProposalKeyPublicKeyRevokedError ¶
An InvalidProposalKeyPublicKeyRevokedError indicates that proposal key sequence number does not match the on-chain value.
func (*InvalidProposalKeyPublicKeyRevokedError) Code ¶
func (e *InvalidProposalKeyPublicKeyRevokedError) Code() uint32
func (*InvalidProposalKeyPublicKeyRevokedError) Error ¶
func (e *InvalidProposalKeyPublicKeyRevokedError) Error() string
type InvalidProposalKeySequenceNumberError ¶
type InvalidProposalKeySequenceNumberError struct { Address flow.Address KeyIndex uint64 CurrentSeqNumber uint64 ProvidedSeqNumber uint64 }
An InvalidProposalKeySequenceNumberError indicates that proposal key sequence number does not match the on-chain value.
func (*InvalidProposalKeySequenceNumberError) Code ¶
func (e *InvalidProposalKeySequenceNumberError) Code() uint32
func (*InvalidProposalKeySequenceNumberError) Error ¶
func (e *InvalidProposalKeySequenceNumberError) Error() string
type InvalidSignaturePublicKeyDoesNotExistError ¶
An InvalidSignaturePublicKeyDoesNotExistError indicates that a signature specifies a public key that does not exist.
func (*InvalidSignaturePublicKeyDoesNotExistError) Code ¶
func (e *InvalidSignaturePublicKeyDoesNotExistError) Code() uint32
func (*InvalidSignaturePublicKeyDoesNotExistError) Error ¶
func (e *InvalidSignaturePublicKeyDoesNotExistError) Error() string
type InvalidSignaturePublicKeyRevokedError ¶
An InvalidSignaturePublicKeyRevokedError indicates that a signature specifies a public key that has been revoked.
func (*InvalidSignaturePublicKeyRevokedError) Code ¶
func (e *InvalidSignaturePublicKeyRevokedError) Code() uint32
func (*InvalidSignaturePublicKeyRevokedError) Error ¶
func (e *InvalidSignaturePublicKeyRevokedError) Error() string
type InvalidSignatureVerificationError ¶
An InvalidSignatureVerificationError indicates that a signature could not be verified using its specified public key.
func (*InvalidSignatureVerificationError) Code ¶
func (e *InvalidSignatureVerificationError) Code() uint32
func (*InvalidSignatureVerificationError) Error ¶
func (e *InvalidSignatureVerificationError) Error() string
type MissingPayerError ¶
type MissingPayerError struct{}
A MissingPayerError indicates that a transaction is missing a payer.
func (*MissingPayerError) Code ¶
func (e *MissingPayerError) Code() uint32
func (*MissingPayerError) Error ¶
func (e *MissingPayerError) Error() string
type MissingSignatureError ¶
A MissingSignatureError indicates that a transaction is missing a required signature.
func (*MissingSignatureError) Code ¶
func (e *MissingSignatureError) Code() uint32
func (*MissingSignatureError) Error ¶
func (e *MissingSignatureError) Error() string
type StorageCapacityExceededError ¶
type StorageCapacityExceededError struct { Address flow.Address StorageUsed uint64 StorageCapacity uint64 }
An StorageCapacityExceededError indicates that an account used more storage than it has storage capacity.
func (*StorageCapacityExceededError) Code ¶
func (e *StorageCapacityExceededError) Code() uint32
func (*StorageCapacityExceededError) Error ¶
func (e *StorageCapacityExceededError) Error() string