errors

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 2 Imported by: 16

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