github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfdiags/sourceless.go (about) 1 package tfdiags 2 3 // Sourceless creates and returns a diagnostic with no source location 4 // information. This is generally used for operational-type errors that are 5 // caused by or relate to the environment where Terraform is running rather 6 // than to the provided configuration. 7 func Sourceless(severity Severity, summary, detail string) Diagnostic { 8 return diagnosticBase{ 9 severity: severity, 10 summary: summary, 11 detail: detail, 12 } 13 }