uerror

package
v0.0.0-...-d807b53 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

View Source
var ErrContextCanceledOrTimeout = NewUError("ErrContextCanceledOrTimeout", "命令行 Context 被取消或超时")
View Source
var ErrHttpResponseCodeNot200 = NewUError("ErrHttpResponseCodeNot200", "http 请求返回状态码不为 200")

Functions

This section is empty.

Types

type UError

type UError struct {
	Code string

	Message string
}

func NewUError

func NewUError(code string, message string) *UError

func (*UError) Error

func (e *UError) Error() string

func (*UError) Is

func (e *UError) Is(err error) bool

func (*UError) WithMessage

func (e *UError) WithMessage(msg string) *UError

func (*UError) WithMessagef

func (e *UError) WithMessagef(format string, args ...interface{}) *UError

func (*UError) WithStack

func (e *UError) WithStack() error

Jump to

Keyboard shortcuts

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