errors

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 62

Documentation

Overview

Package errors provides libraries for working with the go-errors/errors library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(msg string, args ...interface{}) error

Errorf returns a new go-error.

func GetStack added in v0.10.0

func GetStack(err error) string

GetStack returns a stack trace for the error if it has one

func Wrap

func Wrap(err interface{}) error

Wrap returns err wrapped in a go-error. If err is nil, returns nil.

func WrapPrefixf

func WrapPrefixf(err interface{}, msg string, args ...interface{}) error

WrapPrefixf returns err wrapped in a go-error with a message prefix. If err is nil, returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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