Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶ added in v0.33.0
type ActionType string
ActionType constants for programmatic identification
const ( ActionTypeInstallProvider ActionType = "installProvider" ActionTypeUpdateProvider ActionType = "updateProvider" ActionTypeCheckConfiguration ActionType = "checkConfiguration" ActionTypeCheckFunctionName ActionType = "checkFunctionName" ActionTypeCheckResourceType ActionType = "checkResourceType" ActionTypeCheckDataSourceType ActionType = "checkDataSourceType" ActionTypeProvideValue ActionType = "provideValue" ActionTypeAddDefaultValue ActionType = "addDefaultValue" ActionTypeFixVariableType ActionType = "fixVariableType" ActionTypeAddResourceType ActionType = "addResourceType" ActionTypeListAvailableTypes ActionType = "listAvailableTypes" )
type ErrorCategory ¶ added in v0.33.0
type ErrorCategory string
const ( ErrorCategoryProviderMissing ErrorCategory = "providerMissing" ErrorCategoryProviderIncompatible ErrorCategory = "providerIncompatible" ErrorCategoryValidation ErrorCategory = "validation" ErrorCategoryFunctionNotFound ErrorCategory = "functionNotFound" ErrorCategoryResourceType ErrorCategory = "resourceType" ErrorCategoryVariableType ErrorCategory = "variableType" )
type ErrorContext ¶ added in v0.33.0
type ErrorContext struct {
// Category helps clients group and handle errors
Category ErrorCategory `json:"category,omitempty"`
// Reason code from the parent error for programmatic identification
ReasonCode ErrorReasonCode `json:"reasonCode,omitempty"`
// Suggested actions the user can take
SuggestedActions []SuggestedAction `json:"suggestedActions,omitempty"`
// Additional metadata for context
Metadata map[string]any `json:"metadata,omitempty"`
}
ErrorContext provides structured information for error resolution
type ErrorReasonCode ¶
type ErrorReasonCode string
type ExpandedSerialiseError ¶
type ExpandedSerialiseError struct {
ReasonCode ErrorReasonCode
Err error
ChildErrors []error
}
func (*ExpandedSerialiseError) Error ¶
func (e *ExpandedSerialiseError) Error() string
type LoadError ¶
type LoadError struct {
ReasonCode ErrorReasonCode
Err error
ChildErrors []error
Line *int
Column *int
Context *ErrorContext `json:"context,omitempty"`
}
type RunError ¶
type RunError struct {
ReasonCode ErrorReasonCode
Err error
ChildErrors []error
// ChildBlueprintPath is the path to the child blueprint that caused the error.
// This should be in the following format:
// "include.<childName>::include.<grandChildName>::..."
// Rendered as "include.<childName> -> include.<grandChildName> -> ..."
//
// This is useful for distinguishing between errors that occur in the parent blueprint
// and errors that occur in a child blueprint.
ChildBlueprintPath string
Context *ErrorContext `json:"context,omitempty"`
}
type SerialiseError ¶
type SerialiseError struct {
ReasonCode ErrorReasonCode
Err error
ChildErrors []error
Context *ErrorContext `json:"context,omitempty"`
}
func (*SerialiseError) Error ¶
func (e *SerialiseError) Error() string
type SuggestedAction ¶ added in v0.33.0
Click to show internal directories.
Click to hide internal directories.