errors

package
v0.15.3-patch.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: AGPL-3.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAccountNotFound = errors.New("account not found")
View Source
var ErrInvalidHashAlgorithm = errors.New("invalid hash algorithm")

Functions

This section is empty.

Types

type AccountFrozenError

type AccountFrozenError struct {
	Address flow.Address
}

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 (*EncodingUnsupportedValueError) Error

type Error

type Error interface {
	Code() uint32
	Error() string
}

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

type EventLimitExceededError struct {
	TotalByteSize uint64
	Limit         uint64
}

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

type ExecutionError struct {
	Err runtime.Error
}

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 (*InvalidHashAlgorithmError) Error

func (e *InvalidHashAlgorithmError) Error() string

type InvalidProposalKeyMissingSignatureError

type InvalidProposalKeyMissingSignatureError struct {
	Address  flow.Address
	KeyIndex uint64
}

A InvalidProposalKeyMissingSignatureError indicates that a proposal key does not have a valid signature.

func (*InvalidProposalKeyMissingSignatureError) Code

func (*InvalidProposalKeyMissingSignatureError) Error

type InvalidProposalKeyPublicKeyDoesNotExistError

type InvalidProposalKeyPublicKeyDoesNotExistError struct {
	Address  flow.Address
	KeyIndex uint64
}

A InvalidProposalKeyPublicKeyDoesNotExistError indicates that proposal key specifies a nonexistent public key.

func (*InvalidProposalKeyPublicKeyDoesNotExistError) Code

func (*InvalidProposalKeyPublicKeyDoesNotExistError) Error

type InvalidProposalKeyPublicKeyRevokedError

type InvalidProposalKeyPublicKeyRevokedError struct {
	Address  flow.Address
	KeyIndex uint64
}

An InvalidProposalKeyPublicKeyRevokedError indicates that proposal key sequence number does not match the on-chain value.

func (*InvalidProposalKeyPublicKeyRevokedError) Code

func (*InvalidProposalKeyPublicKeyRevokedError) Error

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 (*InvalidProposalKeySequenceNumberError) Error

type InvalidSignaturePublicKeyDoesNotExistError

type InvalidSignaturePublicKeyDoesNotExistError struct {
	Address  flow.Address
	KeyIndex uint64
}

An InvalidSignaturePublicKeyDoesNotExistError indicates that a signature specifies a public key that does not exist.

func (*InvalidSignaturePublicKeyDoesNotExistError) Code

func (*InvalidSignaturePublicKeyDoesNotExistError) Error

type InvalidSignaturePublicKeyRevokedError

type InvalidSignaturePublicKeyRevokedError struct {
	Address  flow.Address
	KeyIndex uint64
}

An InvalidSignaturePublicKeyRevokedError indicates that a signature specifies a public key that has been revoked.

func (*InvalidSignaturePublicKeyRevokedError) Code

func (*InvalidSignaturePublicKeyRevokedError) Error

type InvalidSignatureVerificationError

type InvalidSignatureVerificationError struct {
	Address  flow.Address
	KeyIndex uint64
}

An InvalidSignatureVerificationError indicates that a signature could not be verified using its specified public key.

func (*InvalidSignatureVerificationError) Code

func (*InvalidSignatureVerificationError) Error

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

type MissingSignatureError struct {
	Address flow.Address
}

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 (*StorageCapacityExceededError) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL