errors

package
v0.0.0-...-750f79a Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

func IsTemporaryError

func IsTemporaryError(err error) bool

Types

type NotFound

type NotFound struct {
	// contains filtered or unexported fields
}

func AsNotFound

func AsNotFound(err error, context string, args ...interface{}) *NotFound

func NewNotFound

func NewNotFound(msg string, args ...interface{}) *NotFound

func (NotFound) Error

func (te NotFound) Error() string

func (NotFound) NotFound

func (NotFound) NotFound() bool

type TemporaryError

type TemporaryError struct {
	// contains filtered or unexported fields
}

func AsTemporaryError

func AsTemporaryError(err error, context string, args ...interface{}) *TemporaryError

func NewTemporaryError

func NewTemporaryError(msg string, args ...interface{}) *TemporaryError

func (TemporaryError) Error

func (te TemporaryError) Error() string

func (TemporaryError) Temporary

func (TemporaryError) Temporary() bool

Jump to

Keyboard shortcuts

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