errors

package
v0.0.0-...-3068030 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errors exposes the project's stack-aware error helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target any) bool

func Details

func Details(err error) string

Details renders err with its stack, for the top level of a command.

func Is

func Is(err, target error) bool

func New

func New(msg string) error

func Newf

func Newf(format string, args ...any) error

func Wrap

func Wrap(err error, msg string) error

Wrap captures a stack only when err carries none: a second capture on the way up prints the same frames twice and buries the origin.

func Wrapf

func Wrapf(err error, format string, args ...any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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