errlist

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewField

func NewField(field, message string, args ...interface{}) error

Types

type Field

type Field struct {
	Field string `json:"field"`
	Err   error  `json:"err"`
}

func (Field) Error

func (e Field) Error() string

Error implements `error` interface

func (Field) MarshalJSON

func (e Field) MarshalJSON() ([]byte, error)

type List

type List []error

func (*List) Add

func (e *List) Add(err error) *List

func (*List) AddField

func (e *List) AddField(field string, err error) *List

func (*List) AddFieldf

func (e *List) AddFieldf(field, msg string, args ...interface{}) *List

func (List) Error

func (e List) Error() string

Error implements `error` interface

func (List) ErrorOrNil

func (e List) ErrorOrNil() error

Jump to

Keyboard shortcuts

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