kerrors

package
Version: v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: GPL-3.0 Imports: 1 Imported by: 20

Documentation

Overview

Package kerrors contains common error variables used in Klaytn.

Source File

- kerrors.go : Defines errors

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotHumanReadableAddress    = errors.New("Human-readable address is not supported now")
	ErrHumanReadableNotSupported  = errors.New("Human-readable address is not supported now")
	ErrInvalidContractAddress     = errors.New("contract deploy transaction can't have a recipient address")
	ErrOutOfGas                   = errors.New("out of gas")
	ErrMaxKeysExceed              = errors.New("the number of keys exceeds the limit")
	ErrMaxKeysExceedInValidation  = errors.New("the number of keys exceeds the limit in the validation check")
	ErrMaxFeeRatioExceeded        = errors.New("fee ratio exceeded the maximum")
	ErrEmptySlice                 = errors.New("slice is empty")
	ErrNotForProgramAccount       = errors.New("this type transaction cannot be sent to contract addresses")
	ErrNotProgramAccount          = errors.New("not a program account (e.g., an account having code and storage)")
	ErrPrecompiledContractAddress = errors.New("the address is reserved for pre-compiled contracts")
	ErrInvalidCodeFormat          = errors.New("smart contract code format is invalid")

	// Error codes related to account keys.
	ErrAccountAlreadyExists                 = errors.New("account already exists")
	ErrFeeRatioOutOfRange                   = errors.New("fee ratio is out of range [1, 99]")
	ErrAccountKeyFailNotUpdatable           = errors.New("AccountKeyFail is not updatable")
	ErrDifferentAccountKeyType              = errors.New("different account key type")
	ErrAccountKeyNilUninitializable         = errors.New("AccountKeyNil cannot be initialized to an account")
	ErrNotOnCurve                           = errors.New("public key is not on curve")
	ErrZeroKeyWeight                        = errors.New("key weight is zero")
	ErrUnserializableKey                    = errors.New("key is not serializable")
	ErrDuplicatedKey                        = errors.New("duplicated key")
	ErrWeightedSumOverflow                  = errors.New("weighted sum overflow")
	ErrUnsatisfiableThreshold               = errors.New("unsatisfiable threshold. Weighted sum of keys is less than the threshold.")
	ErrZeroLength                           = errors.New("length is zero")
	ErrLengthTooLong                        = errors.New("length too long")
	ErrNestedCompositeType                  = errors.New("nested composite type")
	ErrLegacyTransactionMustBeWithLegacyKey = errors.New("a legacy transaction must be with a legacy account key")

	ErrDeprecated               = errors.New("deprecated feature")
	ErrNotSupported             = errors.New("not supported")
	ErrPendingBlockNotSupported = errors.New("pending block is not supported")
)

TODO-Klaytn: Use integer for error codes. TODO-Klaytn: Integrate all universally accessible errors into kerrors package.

Functions

This section is empty.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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