Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
ErrorHandler creates an error handler to combine logging and reporting errors
func NewErrorHandler ¶
func NewErrorHandler(ctx context.Context, diags *diag.Diagnostics) *ErrorHandler
NewErrorHandler creates an error handler based on current context and TF diagnostics
func (*ErrorHandler) MakeAndLogError ¶
func (e *ErrorHandler) MakeAndLogError(msg string) error
MakeAndLogError builds an error using message and logs the error with tflog
func (*ErrorHandler) MakeAndReportError ¶
func (e *ErrorHandler) MakeAndReportError(summary string, msg string) error
MakeAndReportError builds an error using message and logs the error with tflog The error is added to the diagnostic and will be reported by Terraform
Click to show internal directories.
Click to hide internal directories.