foxerr

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match added in v1.2.1

func Match(err error, code int) bool

func New

func New(code int, msg string) error

Types

type Error

type Error struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"msg,omitempty"`
}

func (Error) Error

func (e Error) Error() string

func (*Error) Is added in v1.0.1

func (e *Error) Is(target error) bool

func (Error) String

func (e Error) String() string

Jump to

Keyboard shortcuts

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