Error returns a concatenation of all the error messages it wraps.
()
| 73 | |
| 74 | // Error returns a concatenation of all the error messages it wraps. |
| 75 | func (m GetUserRequestMultiError) Error() string { |
| 76 | var msgs []string |
| 77 | for _, err := range m { |
| 78 | msgs = append(msgs, err.Error()) |
| 79 | } |
| 80 | return strings.Join(msgs, "; ") |
| 81 | } |
| 82 | |
| 83 | // AllErrors returns a list of validation violation errors. |
| 84 | func (m GetUserRequestMultiError) AllErrors() []error { return m } |