errors

package
v0.5.17 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalServer = errors.New("internal server error")
	ErrInternalCache  = errors.New("internal cache error")
)

Error list.

Functions

func ErrGTField

func ErrGTField(str, value string) error

ErrGTField is error for greater than field.

func ErrOneOfField

func ErrOneOfField(str, value string) error

ErrOneOfField is error for oneof field.

func ErrRequiredField

func ErrRequiredField(str string) error

ErrRequiredField is error for missing field.

func ErrStyleField

func ErrStyleField() error

ErrStyleField is error for style field.

func Get

func Get(ctx context.Context) interface{}

Get to get error stack.

func Init

func Init(ctx context.Context) context.Context

Init to init context for error stack.

func Wrap

func Wrap(ctx context.Context, err error, errs ...error) error

Wrap to wrap error and put it in the stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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