errorx

package
v0.0.0-...-50c9059 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: GPL-3.0 Imports: 2 Imported by: 15

Documentation

Index

Constants

View Source
const (
	ServerError = 500000
)

Variables

This section is empty.

Functions

func CreateErrorFuncHandler

func CreateErrorFuncHandler(code int) func(error) error

func NewErrorWithLog

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

Types

type Error

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

func NewError

func NewError(code int, err error) *Error

func (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

type IError

type IError interface {
	error
	Code() int
}

Jump to

Keyboard shortcuts

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