failure

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 2 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 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 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 InvalidNetwork

type InvalidNetwork struct {
	Description Description
	Blockchain  string
	Network     string
}

func (InvalidNetwork) Error

func (i InvalidNetwork) 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