errs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: GPL-3.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