errors

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package errors implements functions to manipulate errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(text string) error

New returns an error with the supplied message. It also records the stack trace at the point it was called.

func StackTrace

func StackTrace(err error) string

StackTrace returns the stack trace contained in err, if it is a stackError, else an empty string.

func Wrap

func Wrap(err error) error

Wrap returns err, capturing a stack trace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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