Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrIsClosed is intended to be used when an action is attempted on a closed instance ErrIsClosed = Error("cannot perform action on a closed instance") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorList ¶
type ErrorList struct {
// contains filtered or unexported fields
}
ErrorList is used to chain a list of potential errors and is thread-safe.
func (*ErrorList) Err ¶
Err will return an error if the errorlist is not empty. If there's only 1 error, it will be directly returned. If the errorlist is empty - nil is returned.
func (*ErrorList) Error ¶
Error will return the string-form of the errors. Implements the error interface.
Click to show internal directories.
Click to hide internal directories.