Error returns a concatenation of all the error messages it wraps.
()
| 710 | |
| 711 | // Error returns a concatenation of all the error messages it wraps. |
| 712 | func (m GetUserRequestMultiError) Error() string { |
| 713 | var msgs []string |
| 714 | for _, err := range m { |
| 715 | msgs = append(msgs, err.Error()) |
| 716 | } |
| 717 | return strings.Join(msgs, "; ") |
| 718 | } |
| 719 | |
| 720 | // AllErrors returns a list of validation violation errors. |
| 721 | func (m GetUserRequestMultiError) AllErrors() []error { return m } |