fserr

package module
v0.1.0-4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-3.0 Imports: 2 Imported by: 4

README

fserr

方是错误封装

Documentation

Index

Constants

View Source
const (
	ErrUnknownCode      uint32 = 0x00000001
	ErrParamCode        uint32 = 0x00000002
	ErrConflictCode     uint32 = 0x00000003
	ErrNotExistCode     uint32 = 0x00000004
	ErrTypeTransferCode uint32 = 0x00000005
	ErrAuthCode         uint32 = 0x00000006
	ErrCustomCode       uint32 = 0x00001000
)

Variables

This section is empty.

Functions

func ExplainCode

func ExplainCode(code uint32) string

func NewAuthError

func NewAuthError(message string) error

func NewConflictError

func NewConflictError(message string) error

func NewCustomError

func NewCustomError(message string) error

func NewFromError

func NewFromError(err error) error

func NewNotExistError

func NewNotExistError(message string) error

func NewParamError

func NewParamError(message string) error

func NewTypeTransferError

func NewTypeTransferError(message string) error

func NewUnknownError

func NewUnknownError(message string) error

Types

type Error

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

func (*Error) Code

func (err *Error) Code() uint32

func (*Error) Error

func (err *Error) Error() string

Jump to

Keyboard shortcuts

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