errors

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallStacksString

func CallStacksString(call *CallStack) string

func NewErr

func NewErr(errmsg string) error

func RootErr

func RootErr(err error) error

Types

type CallStack

type CallStack struct {
	Stacks []uintptr
}

func GetCallStacks

func GetCallStacks(err error) *CallStack

type CallStacker

type CallStacker interface {
	GetCallStack() *CallStack
}

type DetailError

type DetailError interface {
	error
	ErrCoder
	CallStacker
	GetRoot() error
}

func NewDetailErr

func NewDetailErr(err error, errcode ErrCode, errmsg string) DetailError

type ErrCode

type ErrCode int32
const (
	ErrNoCode               ErrCode = -2
	ErrNoError              ErrCode = 0
	ErrUnknown              ErrCode = -1
	ErrDuplicatedTx         ErrCode = 45002
	ErrDuplicateInput       ErrCode = 45003
	ErrAssetPrecision       ErrCode = 45004
	ErrTransactionBalance   ErrCode = 45005
	ErrAttributeProgram     ErrCode = 45006
	ErrTransactionContracts ErrCode = 45007
	ErrTransactionPayload   ErrCode = 45008
	ErrDoubleSpend          ErrCode = 45009
	ErrTxHashDuplicate      ErrCode = 45010
	ErrStateUpdaterVaild    ErrCode = 45011
	ErrSummaryAsset         ErrCode = 45012
	ErrXmitFail             ErrCode = 45013
	ErrNoAccount            ErrCode = 45014
	ErrRetryExhausted       ErrCode = 45015
	ErrTxPoolFull           ErrCode = 45016
	ErrNetPackFail          ErrCode = 45017
	ErrNetUnPackFail        ErrCode = 45018
	ErrNetVerifyFail        ErrCode = 45019
	ErrGasPrice             ErrCode = 45020
)

func ErrerCode

func ErrerCode(err error) ErrCode

func (ErrCode) Error

func (err ErrCode) Error() string

type ErrCoder

type ErrCoder interface {
	GetErrCode() ErrCode
}

Jump to

Keyboard shortcuts

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