cuserrorx

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ok     = 0
	Failed = 2
)

Variables

This section is empty.

Functions

func Is

func Is(err, target error) bool

Types

type Error

type Error interface {
	error
	Code() int
	Msg() string
	GetError() error
}

func As

func As(err error) Error

func NewWithCode

func NewWithCode(code int) Error

func NewWithError

func NewWithError(code int, err error) Error

func NewWithErrorMsg

func NewWithErrorMsg(msg string) Error

func NewWithMsg

func NewWithMsg(code int, msg string) Error

Jump to

Keyboard shortcuts

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