Versions in this module Expand all Collapse all v0 v0.11.0 Sep 9, 2026 Changes in this version + type Category string + const CategoryBackup + const CategoryConsolidation + const CategoryConstraint + const CategoryCycle + const CategoryDataType + const CategoryDependency + const CategoryExtension + const CategoryFunction + const CategoryGeneral + const CategoryIndex + const CategoryInfo + const CategoryNaming + const CategoryNormalization + const CategoryOptimization + const CategoryParsing + const CategoryPerformance + const CategoryPermission + const CategoryPolicy + const CategoryRisk + const CategoryRollback + const CategorySemantic + const CategorySyntax + const CategoryTransformation + const CategoryType + const CategoryValidation + type ErrorCode string + const ErrorCodeAnalysisError + const ErrorCodeArraySpecError + const ErrorCodeBackupGenerationFailed + const ErrorCodeBackupValidationFailed + const ErrorCodeCompositeTypeError + const ErrorCodeConfigurationError + const ErrorCodeConsolidationFailed + const ErrorCodeDatabaseNotAccessible + const ErrorCodeDependencyError + const ErrorCodeEnumValidationError + const ErrorCodeExecutionNotFound + const ErrorCodeIncompatibleTypes + const ErrorCodeInvalidIdentifier + const ErrorCodeInvalidObject + const ErrorCodeInvalidSQL + const ErrorCodeInvalidType + const ErrorCodeManualInterventionRequired + const ErrorCodeNormalizationFailed + const ErrorCodePartialSuccess + const ErrorCodeRecoveryAttempted + const ErrorCodeRollbackAnalysisFailed + const ErrorCodeRollbackGenerationFailed + const ErrorCodeRollbackNotFound + const ErrorCodeRollbackSaveFailed + const ErrorCodeSQLGenerationFailed + const ErrorCodeSchemaNotFound + const ErrorCodeSemanticError + const ErrorCodeSizeExtractionError + const ErrorCodeSyntaxError + const ErrorCodeTransformationFailed + const ErrorCodeTypeNotFound + const ErrorCodeValidationFailed + const ErrorCodeWorkingDirCreationFailed + type ErrorCollector struct + func NewErrorCollector(ctx context.Context) *ErrorCollector + func (ec *ErrorCollector) AddError(err *StructuredError) + func (ec *ErrorCollector) Clear() + func (ec *ErrorCollector) GetAllIssues() []*StructuredError + func (ec *ErrorCollector) GetErrors() []*StructuredError + func (ec *ErrorCollector) GetWarnings() []*StructuredError + func (ec *ErrorCollector) HasErrors() bool + func (ec *ErrorCollector) HasWarnings() bool + func (ec *ErrorCollector) Summary() ErrorSummary + type ErrorContext struct + Additional map[string]any + Column int + Filename string + Line int + MigrationSeq int + ObjectName string + ObjectType string + ProcessingPhase string + SQLQuery string + Schema string + StatementText string + TypeName string + type ErrorFormatter struct + func NewErrorFormatter() *ErrorFormatter + func (ef *ErrorFormatter) FormatError(err *StructuredError) string + func (ef *ErrorFormatter) FormatErrorList(errors []*StructuredError) string + func (ef *ErrorFormatter) FormatSummary(summary ErrorSummary) string + type ErrorSummary struct + Categories map[Category]int + Codes map[ErrorCode]int + Severities map[Severity]int + TotalErrors int + TotalWarnings int + type Severity int + const SeverityCritical + const SeverityError + const SeverityInfo + const SeverityWarning + func (s Severity) String() string + type StructuredError struct + CanContinue bool + Category Category + Code ErrorCode + Context *ErrorContext + InnerError error + Message string + Severity Severity + Suggestion string + func New(code ErrorCode, category Category, message string, additional map[string]any) *StructuredError + func NewCriticalError(code ErrorCode, message string, category Category) *StructuredError + func NewError(code ErrorCode, message string, severity Severity, category Category) *StructuredError + func NewNormalizationError(message string, index int) *StructuredError + func NewParseError(code ErrorCode, message string) *StructuredError + func NewTransformationError(code ErrorCode, message string) *StructuredError + func NewTypeError(code ErrorCode, message string, typeName string) *StructuredError + func NewValidationError(code ErrorCode, message string) *StructuredError + func NewWarning(category Category, message string) *StructuredError + func Wrap(innerErr error, code ErrorCode, category Category, message string, ...) *StructuredError + func (e *StructuredError) Error() string + func (e *StructuredError) Unwrap() error + func (e *StructuredError) WithAdditional(key string, value any) *StructuredError + func (e *StructuredError) WithCanContinue(canContinue bool) *StructuredError + func (e *StructuredError) WithColumn(column int) *StructuredError + func (e *StructuredError) WithContext(ctx *ErrorContext) *StructuredError + func (e *StructuredError) WithFile(filename string) *StructuredError + func (e *StructuredError) WithInnerError(err error) *StructuredError + func (e *StructuredError) WithLine(line int) *StructuredError + func (e *StructuredError) WithObject(name, objType string) *StructuredError + func (e *StructuredError) WithSQLQuery(query string) *StructuredError + func (e *StructuredError) WithSchema(schema string) *StructuredError + func (e *StructuredError) WithStatement(sql string) *StructuredError + func (e *StructuredError) WithSuggestion(suggestion string) *StructuredError + func (e *StructuredError) WithTypeName(typeName string) *StructuredError