errs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSleepError

func NewSleepError(msg string, sleep time.Duration) error

Types

type SleepError

type SleepError struct {
	Err   error         `json:"-"`
	Msg   string        `json:"msg"`
	Sleep time.Duration `json:"sleep"`
}

SleepError With time. Duration's error The most intuitive usage is: the length of time that can be specified when encountering Sleep

func (*SleepError) Error

func (e *SleepError) Error() string

Jump to

Keyboard shortcuts

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