errors

package
v2.0.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errors provides error wrapping helpers that add inline, single frame stack trace information to error messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackTraceNew

func BackTraceNew(backTraceFuncName, message string) error

BackTraceNew returns a new error with the given message, wrapped with the caller stack frame information going back up the stack until the caller of the specified function name is encountered.

func Trace

func Trace(err error) error

Trace wraps the given error with the caller stack frame information.

func TraceMsg

func TraceMsg(err error, message string) error

TraceMsg wraps the given error with the caller stack frame information and the given message.

func TraceNew

func TraceNew(message string) error

TraceNew returns a new error with the given message, wrapped with the caller stack frame information.

func Tracef

func Tracef(format string, args ...interface{}) error

Tracef returns a new error with the given formatted message, wrapped with the caller stack frame information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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