| 35 | } |
| 36 | |
| 37 | type DiagnosticError struct { |
| 38 | // Message is the human-readable message that will be returned to the user. |
| 39 | Message string |
| 40 | // Diagnostics are top level diagnostics that will be returned as "Detail" in the response. |
| 41 | Diagnostics hcl.Diagnostics |
| 42 | // KeyedDiagnostics translate to Validation errors in the response. A key could |
| 43 | // be a parameter name, or a tag name. This allows diagnostics to be more closely |
| 44 | // associated with a specific index/parameter/tag. |
| 45 | KeyedDiagnostics map[string]hcl.Diagnostics |
| 46 | } |
| 47 | |
| 48 | // Error is a pretty bad format for these errors. Try to avoid using this. |
| 49 | func (e *DiagnosticError) Error() string { |
nothing calls this directly
no outgoing calls
no test coverage detected