failure

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description struct {
	Text   string
	Fields Fields
}

func NewDescription

func NewDescription(text string, fields ...FieldFunc) Description

func (Description) String

func (d Description) String() string

type Field

type Field struct {
	Key string
	Val interface{}
}

type FieldFunc

type FieldFunc func(*Fields)

func WithErr

func WithErr(err error) FieldFunc

func WithID added in v1.1.0

func WithID(key string, val flow.Identifier) FieldFunc

func WithInt

func WithInt(key string, val int) FieldFunc

func WithString

func WithString(key string, val string) FieldFunc

func WithStrings

func WithStrings(key string, vals ...string) FieldFunc

func WithUint64

func WithUint64(key string, val uint64) FieldFunc

type Fields

type Fields []Field

func (Fields) Iterate

func (f Fields) Iterate(handle func(key string, val interface{}))

func (Fields) String

func (f Fields) String() string

type InvalidAccount

type InvalidAccount struct {
	Description Description
	Address     string
}

func (InvalidAccount) Error

func (i InvalidAccount) Error() string

type InvalidAmount added in v1.2.0

type InvalidAmount struct {
	Description Description
	Amount      string
}

func (InvalidAmount) Error added in v1.2.0

func (i InvalidAmount) Error() string

type InvalidArguments added in v1.2.0

type InvalidArguments struct {
	Description Description
	Have        uint
	Want        uint
}

func (InvalidArguments) Error added in v1.2.0

func (i InvalidArguments) Error() string

type InvalidAuthorizers added in v1.2.0

type InvalidAuthorizers struct {
	Description Description
	Have        uint
	Want        uint
}

func (InvalidAuthorizers) Error added in v1.2.0

func (i InvalidAuthorizers) Error() string

type InvalidBlock

type InvalidBlock struct {
	Description Description
}

func (InvalidBlock) Error

func (i InvalidBlock) Error() string

type InvalidCurrency

type InvalidCurrency struct {
	Description Description
	Symbol      string
	Decimals    uint
}

func (InvalidCurrency) Error

func (i InvalidCurrency) Error() string

type InvalidIntent added in v1.2.0

type InvalidIntent struct {
	Description Description
}

func (InvalidIntent) Error added in v1.2.0

func (i InvalidIntent) Error() string

type InvalidKey added in v1.2.0

type InvalidKey struct {
	Description Description
	Height      uint64
	Address     flow.Address
	Index       int
}

func (InvalidKey) Error added in v1.2.0

func (i InvalidKey) Error() string

type InvalidNetwork

type InvalidNetwork struct {
	Description Description
	Blockchain  string
	Network     string
}

func (InvalidNetwork) Error

func (i InvalidNetwork) Error() string

type InvalidOperations added in v1.2.0

type InvalidOperations struct {
	Description Description
	Want        uint
	Have        uint
}

func (InvalidOperations) Error added in v1.2.0

func (i InvalidOperations) Error() string

type InvalidPayer added in v1.2.0

type InvalidPayer struct {
	Description Description
	Have        flow.Address
	Want        flow.Address
}

func (InvalidPayer) Error added in v1.2.0

func (i InvalidPayer) Error() string

type InvalidPayload added in v1.2.0

type InvalidPayload struct {
	Description Description
	Encoding    string
}

func (InvalidPayload) Error added in v1.2.0

func (i InvalidPayload) Error() string

type InvalidProposer added in v1.2.0

type InvalidProposer struct {
	Description Description
	Have        flow.Address
	Want        flow.Address
}

func (InvalidProposer) Error added in v1.2.0

func (i InvalidProposer) Error() string

type InvalidReceiver added in v1.2.0

type InvalidReceiver struct {
	Description Description
	Receiver    string
}

func (InvalidReceiver) Error added in v1.2.0

func (i InvalidReceiver) Error() string

type InvalidScript added in v1.2.0

type InvalidScript struct {
	Description Description
	Script      string
}

func (InvalidScript) Error added in v1.2.0

func (i InvalidScript) Error() string

type InvalidSignature added in v1.2.0

type InvalidSignature struct {
	Description Description
}

func (InvalidSignature) Error added in v1.2.0

func (i InvalidSignature) Error() string

type InvalidSignatures added in v1.2.0

type InvalidSignatures struct {
	Description Description
	Want        uint
	Have        uint
}

func (InvalidSignatures) Error added in v1.2.0

func (i InvalidSignatures) Error() string

type InvalidTransaction

type InvalidTransaction struct {
	Description Description
	Hash        string
}

func (InvalidTransaction) Error

func (i InvalidTransaction) Error() string

type UnknownBlock

type UnknownBlock struct {
	Description Description
	Index       uint64
	Hash        string
}

func (UnknownBlock) Error

func (u UnknownBlock) Error() string

type UnknownCurrency

type UnknownCurrency struct {
	Description Description
	Symbol      string
	Decimals    uint
}

func (UnknownCurrency) Error

func (u UnknownCurrency) Error() string

type UnknownTransaction

type UnknownTransaction struct {
	Description Description
	Hash        string
}

func (UnknownTransaction) Error

func (u UnknownTransaction) Error() string

Jump to

Keyboard shortcuts

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