errors

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeError

type CodeError struct {
	Code    int
	Message string
	Data    interface{}
}

func FromError

func FromError(err error) *CodeError

func NewError

func NewError(code int, msg string) *CodeError

func NewErrorData

func NewErrorData(code int, msg string, data interface{}) *CodeError

func NewErrorMsg

func NewErrorMsg(msg string) *CodeError

func (*CodeError) Error

func (e *CodeError) Error() string

Jump to

Keyboard shortcuts

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