Documentation ¶
Overview ¶
Package errutil provides utilty of errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
MultiError has multipule errors in internal and can show all of these
func (*MultiError) Add ¶
func (me *MultiError) Add(err error)
Add given error into Internal. if error is nil, no action for internal errors.
func (*MultiError) Err ¶
func (me *MultiError) Err() error
Err returns internal errors joined to one error. if internal errors is nothing, return nil.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is wrapper of io.Reader with internal error.
func NewErrReader ¶
Click to show internal directories.
Click to hide internal directories.