Skip to main content

ErrorCollection

This class represents a collection of errors. It is used to aggregate multiple errors that may occur during a process, allowing for a single object to be returned or handled that encapsulates all encountered issues.

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.