dferrors

package
v2.0.0-alpha-inner-test Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgument = errors.New("invalid argument")
	ErrDataNotFound    = errors.New("data not found")
	ErrEmptyValue      = errors.New("empty value")
	ErrConvertFailed   = errors.New("convert failed")
	ErrEndOfStream     = errors.New("end of stream")
	ErrNoCandidateNode = errors.New("candidate server node not found")
)

common and framework errors

Functions

func CheckError

func CheckError(err error, code base.Code) bool

func IsEndOfStream

func IsEndOfStream(err error) bool

Types

type DfError

type DfError struct {
	Code    base.Code
	Message string
}

func New

func New(code base.Code, msg string) *DfError

func Newf

func Newf(code base.Code, format string, a ...interface{}) *DfError

func (*DfError) Error

func (s *DfError) Error() string

Jump to

Keyboard shortcuts

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