errors

package
v1.30.31 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 2 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 added in v1.20.7

func Text(msg string) error

Text return TextError type

func Wrap

func Wrap(err error, text string) error

Types

type QueryError added in v1.20.7

type QueryError struct {
	Query string
	Err   error
}

func (*QueryError) Error added in v1.20.7

func (e *QueryError) Error() string

func (*QueryError) Unwrap added in v1.20.7

func (e *QueryError) Unwrap() error

type TextError added in v1.20.7

type TextError struct {
	Msg string
}

TextError customize cn text error

var TextErr *TextError

func (*TextError) Error added in v1.20.7

func (s *TextError) Error() string

Jump to

Keyboard shortcuts

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