error implementation, so that diagnostics can be returned via APIs that normally deal in vanilla Go errors. This presents only minimal context about the error, for compatibility with usual expectations about how errors will present as strings.
()
| 99 | // This presents only minimal context about the error, for compatibility |
| 100 | // with usual expectations about how errors will present as strings. |
| 101 | func (d *Diagnostic) Error() string { |
| 102 | return fmt.Sprintf("%s: %s; %s", d.Subject, d.Summary, d.Detail) |
| 103 | } |
| 104 | |
| 105 | // error implementation, so that sets of diagnostics can be returned via |
| 106 | // APIs that normally deal in vanilla Go errors. |
no outgoing calls