types2

package
v0.0.0-...-73ba865 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DDC = "ddc-sdk-go"
)

Variables

View Source
var (
	AccountNameError     = register(DDC, "1026", "account name is empty")
	AccountError         = register(DDC, "1027", "account is not a standard address format")
	OwnerAccountError    = register(DDC, "1028", "owner account is not a standard address format")
	SenderAccountError   = register(DDC, "1029", "sender account is not a standard address format")
	OperatorAccountError = register(DDC, "1030", "owner account is not a standard address format")
	AccountsError        = register(DDC, "1031", "accounts must not be empty")
	AccNamesError        = register(DDC, "1032", "accNames must not be empty")
	AccDIDsError         = register(DDC, "1033", "accDIDs must not be empty")
	LeaderDIDsError      = register(DDC, "1034", "LeaderDIDs must not be empty")
	ToListError          = register(DDC, "1035", "toList must not be empty")
	AmountsError         = register(DDC, "1036", "amounts must not be empty")
	NameError            = register(DDC, "1037", "name must not be null")
	SymbolError          = register(DDC, "1038", "symbol must not be null")

	FromAccountError     = register(DDC, "1007", "from account is not a standard address format")
	ToAccountError       = register(DDC, "1008", "to account is not a standard address format")
	ContractAddressError = register(DDC, "1009", "contract address is not a standard address format")

	DDCInfoError      = register(DDC, "1010", "the length of amounts and ddcURIs do not match")
	OwnersDDCIdsError = register(DDC, "1011", "the length of owners and ddcIds do not match")

	DDCIdError  = register(DDC, "1016", "ddcID is wrong")
	DDCURIError = register(DDC, "1017", "ddcURI cannot be empty")
	AmountError = register(DDC, "1018", "Amount is wrong")
	DDCIdsError = register(DDC, "1019", "ddcIds must not be empty")

	TransactError = register(DDC, "3001", "failed to transact")
	QueryError    = register(DDC, "3002", "failed to query")
	InternalError = register(DDC, "3003", "internal error")
)

Functions

This section is empty.

Types

type AppError

type AppError struct {
	// contains filtered or unexported fields
}

func NewAppError

func NewAppError(codeSpace string, code string, desc string) *AppError

func (*AppError) Error

func (a *AppError) Error() string

type SDKError

type SDKError struct {
	// contains filtered or unexported fields
}

func NewSDKError

func NewSDKError(code string, desc string) *SDKError

func (*SDKError) Error

func (a *SDKError) Error() string

Jump to

Keyboard shortcuts

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