errors

package
v0.0.0-...-a19c61f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Separator = ":\n\t"

Separator between errors and their causes. Overridable for situations where a newline and tab aren't desired.

Functions

func Errorf

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

Errorf creates a new error with a specific formatting

func New

func New(msg string) error

New creates a new error

func Wrap

func Wrap(err error, msg string) error

Wrap creates a new error with another error as its cause

func Wrapf

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

Wrapf creates a new error with a specific formatting with another error as its cause

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error is an error within shaden

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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