Documentation ¶
Index ¶
- type StatusError
- func (v StatusError) CanBeTalk() bool
- func (v StatusError) Code() int
- func (v StatusError) Error() string
- func (v StatusError) Key() string
- func (v StatusError) Msg() string
- func (StatusError) ServiceCode() int
- func (v StatusError) StatusCode() int
- func (v StatusError) StatusErr() *statusx.StatusErr
- func (v StatusError) Unwrap() error
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 ( StatusError = http.StatusUnauthorized*1e6 + iota + 1 )Unauthorized
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
Click to show internal directories.
Click to hide internal directories.