Documentation ¶
Index ¶
Constants ¶
View Source
const DefSep = "; "
DefSep is a separator for error messages.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiError ¶
type MultiError struct { Sep string // contains filtered or unexported fields }
MultiError designed to combine several errors into one. Uses Sep to separate one error message from another.
func (*MultiError) Error ¶
func (e *MultiError) Error() string
func (*MultiError) Similar ¶
func (e *MultiError) Similar(err *MultiError) bool
Similar checks if two MultiErrors are similar. Two MultiErrors are considered similar if they contain the same errors, even in a different order.
Click to show internal directories.
Click to hide internal directories.