errors

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCacheTime  = errors.New("invalid cache time")
	ErrInvalidYoutubeURL = errors.New("invalid youtube url")
	ErrInvalidYoutubeID  = errors.New("invalid youtube video id")
	ErrNotInVC           = errors.New("not in voice channel")
	ErrInvalidPrompt     = errors.New("invalid prompt response")
)

List of error.

Functions

func Get

func Get(ctx context.Context) []string

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