errors

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errors provides error helpers and sentinel errors for the toolkit application.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknown = fmt.Errorf("unknown error")

ErrUnknown is a generic sentinel error for unknown error cases. Document: use errors.Is(err, ErrUnknown) for comparison.

Functions

func Join

func Join(errs ...error) error

Join combines multiple errors into one (Go 1.20+).

func Unwrap

func Unwrap(err error) error

Unwrap returns the wrapped error if available (for custom error types).

func Wrap

func Wrap(action string, err error) error

Wrap returns an error with consistent phrasing: "action: %w"

Types

This section is empty.

Jump to

Keyboard shortcuts

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