Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCollection ¶
type ErrorCollection struct {
// contains filtered or unexported fields
}
ErrorCollection gives ability to return multiple errors instead of one. It gathers errors and return error with message combined with messages from all given errors delimited by defined string.
func (*ErrorCollection) Add ¶
func (e *ErrorCollection) Add(err error)
Add inserts new error to collection.
func (*ErrorCollection) GetErrIfAny ¶
func (e *ErrorCollection) GetErrIfAny() error
GetErrIfAny returns error with combined message from all given errors. In case of no error it returns nil.
Click to show internal directories.
Click to hide internal directories.