1package combinederr23import "strings"45// CombinedError is a combined execution error6type CombinedError struct {7 errors []error8}910// Error returns the combined execution error11func (e *CombinedError) Error() string {12 if len(e.errors) == 0 {13 return ""14 }1516 var sb strings.Builder1718 for _, err := range e.errors {19 sb.WriteString(err.Error() + "; ")20 }2122 // Remove the last semicolon and space23 result := sb.String()2425 return result[:len(result)-2]26}2728// Add adds a new error to the execution error29func (e *CombinedError) Add(err error) {30 if err == nil {31 return32 }3334 e.errors = append(e.errors, err)35}3637// Size returns a38func (e *CombinedError) Size() int {39 return len(e.errors)40}41Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.