errtmp

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package errtmp provides a way to mark errors as temporary.

Example
err := errbase.New("error")
err = Wrap(err, true)
temporary := Is(err)
fmt.Println(temporary)
Output:

true

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

Is returns true if an error is temporary, false otherwise.

By default, an error is temporary.

func Wrap

func Wrap(err error, tmp bool) error

Wrap marks an errors as temporary.

The verbose message is "temporary = <tmp>".

Types

This section is empty.

Jump to

Keyboard shortcuts

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