errors

package module
v0.0.0-...-5452d80 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 1 Imported by: 64

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

Error is an error interface implementation that has an error context, an error message and could wrap other errors

func New

func New(context, message string, errors ...error) *Error

New returns an Error instance

func (*Error) Error

func (err *Error) Error() string

Error returns an error message with the wrapped errors

func (*Error) ErrorWithContext

func (err *Error) ErrorWithContext() string

ErrorWithContext returns an error message with its context and also the wrapped errors

Jump to

Keyboard shortcuts

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