Versions in this module Expand all Collapse all v0 v0.5.0 Mar 30, 2026 v0.4.1 Mar 28, 2026 Changes in this version + var ErrorCatalog = map[ErrorCode]CatalogEntry + type CatalogEntry struct + Code ErrorCode + Description string + RelatedCodes []ErrorCode + Resolution string + func GetCatalogEntry(code ErrorCode) (CatalogEntry, bool) + type ErrorCode string + const ErrorCodeExecutionCommandFailed + const ErrorCodeExecutionCommandTimeout + const ErrorCodeExecutionParallelPartialFailure + const ErrorCodeExecutionPluginDisabled + const ErrorCodeSystemIOPermissionDenied + const ErrorCodeSystemIOReadFailed + const ErrorCodeSystemIOWriteFailed + const ErrorCodeUserInputInvalidFormat + const ErrorCodeUserInputMissingFile + const ErrorCodeUserInputValidationFailed + const ErrorCodeWorkflowParseUnknownField + const ErrorCodeWorkflowParseYAMLSyntax + const ErrorCodeWorkflowValidationCycleDetected + const ErrorCodeWorkflowValidationInvalidTransition + const ErrorCodeWorkflowValidationMissingState + func AllErrorCodes() []ErrorCode + func (ec ErrorCode) Category() string + func (ec ErrorCode) ExitCode() int + func (ec ErrorCode) IsValid() bool + func (ec ErrorCode) Specific() string + func (ec ErrorCode) Subcategory() string + type Hint struct + Message string + type HintGenerator func(err *StructuredError) []Hint + type StructuredError struct + Cause error + Code ErrorCode + Details map[string]any + Message string + Timestamp time.Time + func NewExecutionError(code ErrorCode, message string, details map[string]any, cause error) *StructuredError + func NewStructuredError(code ErrorCode, message string, details map[string]any, cause error) *StructuredError + func NewSystemError(code ErrorCode, message string, details map[string]any, cause error) *StructuredError + func NewUserError(code ErrorCode, message string, details map[string]any, cause error) *StructuredError + func NewWorkflowError(code ErrorCode, message string, details map[string]any, cause error) *StructuredError + func (e *StructuredError) As(target any) bool + func (e *StructuredError) Error() string + func (e *StructuredError) ExitCode() int + func (e *StructuredError) Format(s fmt.State, verb rune) + func (e *StructuredError) Is(target error) bool + func (e *StructuredError) Unwrap() error + func (e *StructuredError) WithDetails(additionalDetails map[string]any) *StructuredError