errors

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

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

Errors is struct for storing multiple errors.

func NewErrors

func NewErrors(name string) *Errors

NewErrors returns initialized *Errors.

func (*Errors) Add

func (e *Errors) Add(err error)

Add adds error into the error list.

func (*Errors) AddMessage

func (e *Errors) AddMessage(msg string)

AddMessage adds error message into the error list.

func (Errors) Error

func (e Errors) Error() string

func (*Errors) HasError

func (e *Errors) HasError() bool

HasError checks the error list contains one or more error or not.

Jump to

Keyboard shortcuts

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