errors

package module
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 4 Imported by: 2

README

errors

Errors with stack trace

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

Is Error check

Types

type Error

type Error interface {
	error
	Is(error) bool
	Unwrap() error

	io.WriterTo

	Skip(n int) Error
	Stack() *runtime.Frames
	StackLines() []string
}

Error with stack trace

func New

func New(message string) Error

New error message with stack trace

func Newf

func Newf(format string, args ...interface{}) Error

Newf error formatted message with stack trace

func Stack

func Stack(err error) Error

Stack trace error wrap

Jump to

Keyboard shortcuts

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