examples

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusError

type StatusError int
const (
	// InternalServerError 内部错误
	InternalServerError StatusError = http.StatusInternalServerError*1e6 + iota + 1
)
const (
	// @errTalk Unauthorized
	Unauthorized StatusError = http.StatusUnauthorized*1e6 + iota + 1
)

func (StatusError) CanBeTalk

func (v StatusError) CanBeTalk() bool

func (StatusError) Code

func (v StatusError) Code() int

func (StatusError) Error

func (v StatusError) Error() string

func (StatusError) Key

func (v StatusError) Key() string

func (StatusError) Msg

func (v StatusError) Msg() string

func (StatusError) ServiceCode

func (StatusError) ServiceCode() int

func (StatusError) StatusCode

func (v StatusError) StatusCode() int

func (StatusError) StatusErr

func (v StatusError) StatusErr() *statusx.StatusErr

func (StatusError) Unwrap

func (v StatusError) Unwrap() error

Jump to

Keyboard shortcuts

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