lazyerrors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 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