MCPcopy Index your code
hub / github.com/coder/coder / DiagnosticError

Struct DiagnosticError

coderd/dynamicparameters/error.go:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37type 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.
49func (e *DiagnosticError) Error() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected