errors

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: AGPL-3.0 Imports: 4 Imported by: 142

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause returns the original cause of the error stack

func New

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

New creates a new error

func Panicked added in v0.18.1

func Panicked(r any) error

Panicked wraps panick errow with extra details of error

func Stack

func Stack(err error) error

Stack add current code location without adding more info

func StackN

func StackN(err error, skip int) error

StackN add code location of N steps before without adding more info

func Wrap

func Wrap(err error, format string, a ...any) error

Wrap existing error with additional text

Types

This section is empty.

Jump to

Keyboard shortcuts

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