diagnostics

package
v3.88.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	AttributePath cty.Path
	Summary       string
	Detail        string
}

ValidationError wraps diagnostics reported by shims (currently shim v2 and tf5).

func (ValidationError) Error

func (e ValidationError) Error() string

Last-resort error printout.

To display nice error messages to Pulumi users the bridge should recognize ValidationError structs and reformat AttributePath in terms of the Pulumi provider as appropriate, so this method should not be called on paths that are expected to be user-visible.

However this method is currently called in unrecoverable situations when underlying TF machinery fails. Opt to expose all the information here to facilitate debugging.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL