lazyerrors

package
v0.0.0-...-bb56650 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package lazyerrors provides error wrapping with file location.

Only one file location is captures for each error, not a full stack. If the chain is needed, don't forget to add links manually.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) error

Error returns new error with a given non-nil error and file location.

func Errorf

func Errorf(format string, a ...any) error

Errorf returns new error with a given format string and file location.

func New

func New(s string) error

New returns new error with a given error string and file location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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