errors

package
v0.0.0-...-e6fb8a6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNEXPECTED_PACKET_FROM_CLIENT int = 101
	ER_INTERPRETER_CREATOR_UNKNOW int = 422
)

Error type.

Variables

This section is empty.

Functions

func ErrorWithCode

func ErrorWithCode(num int, format string, args ...interface{}) error

func Errorf

func Errorf(format string, args ...interface{}) error

func New

func New(msg string) error

func Wrap

func Wrap(err error) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Cause

func (e *Error) Cause() error

func (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

func (*Error) Format

func (e *Error) Format(s fmt.State, verb rune)

Jump to

Keyboard shortcuts

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