ErrorCollection
This class represents a collection of errors. It is used to aggregate multiple error instances, allowing for a single object to encapsulate and manage various issues that may arise during an operation.
Attributes
| Attribute | Type | Description |
|---|---|---|
| Errors | []error | Stores a slice of errors encountered during a process, allowing for the collection and reporting of multiple issues. |
Methods
Error()
@classmethod
def Error() - > string
Returns a string representation of the errors collected. This method is used to provide a consolidated error message for the ErrorCollection.
Returns
| Type | Description |
|---|---|
string | A string containing the concatenated error messages from the collection. |