Append creates a new Errors object with the current and input errors.
(errs []*Error)
| 72 | |
| 73 | // Append creates a new Errors object with the current and input errors. |
| 74 | func (e *Errors) Append(errs []*Error) *Errors { |
| 75 | return &Errors{ |
| 76 | errors: append(e.errors[:], errs...), |
| 77 | source: e.source, |
| 78 | numErrors: e.numErrors + len(errs), |
| 79 | maxErrorsToReport: e.maxErrorsToReport, |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // ToDisplayString returns the error set to a newline delimited string. |
| 84 | func (e *Errors) ToDisplayString() string { |
no outgoing calls