Error returns a concatenation of all the error messages it wraps.
()
| 278 | |
| 279 | // Error returns a concatenation of all the error messages it wraps. |
| 280 | func (m BlockItemMultiError) Error() string { |
| 281 | var msgs []string |
| 282 | for _, err := range m { |
| 283 | msgs = append(msgs, err.Error()) |
| 284 | } |
| 285 | return strings.Join(msgs, "; ") |
| 286 | } |
| 287 | |
| 288 | // AllErrors returns a list of validation violation errors. |
| 289 | func (m BlockItemMultiError) AllErrors() []error { return m } |