errors

package
v1.2.3-beta3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(text string) error

func Text

func Text(msg string) error

Text return TextError type

func Wrap

func Wrap(err error, text string) error

Types

type TextError

type TextError struct {
	Msg string
}

TextError customize cn text error

var TextErr *TextError

func (*TextError) Error

func (s *TextError) Error() string

func (*TextError) Is added in v1.2.2

func (s *TextError) Is(err error) bool

func (*TextError) Unwrap added in v1.2.2

func (s *TextError) Unwrap() error

Jump to

Keyboard shortcuts

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