rShetty / multierror

MultiError for handling zero or more errors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiError

Build Status

-- import "github.com/rShetty/multierror"

Usage

type MultiError

type MultiError struct {
}

MultiError implements error interface. An instance of MultiError has zero or more errors.

func (*MultiError) Error

func (m *MultiError) Error() string

Error implements error interface.

func (*MultiError) HasError

func (m *MultiError) HasError() *MultiError

HasError checks if MultiError has any error.

func (*MultiError) Push

func (m *MultiError) Push(errString string)

Push adds an error to MultiError.

License


This tool is released under the MIT license. Please refer to LICENSE for more details.

About

MultiError for handling zero or more errors

License:MIT License


Languages

Language:Makefile 64.6%Language:Go 35.4%