errors

package
v0.0.0-...-71d5ba4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchError

func CatchError(callback func(error)) bool

func Check

func Check(err error) bool

Types

type ConnectionError

type ConnectionError ErrCode

func (ConnectionError) Error

func (e ConnectionError) Error() string

type ErrCode

type ErrCode uint32
const (
	ErrCodeNo       ErrCode = 0x0
	ErrCodeProtocol ErrCode = 0x1
	ErrCodeInternal ErrCode = 0x2
	ErrCodeConnect  ErrCode = 0x3
)

func (ErrCode) String

func (e ErrCode) String() string

type UnknownNetTypeError

type UnknownNetTypeError struct {
	ErrCode
	UnknownType int
}

func (UnknownNetTypeError) Error

func (e UnknownNetTypeError) Error() string

Jump to

Keyboard shortcuts

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