Skip to main content

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

AttributeTypeDescription
Errors[]errorStores 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

TypeDescription
stringA string containing the concatenated error messages from the collection.