Versions in this module Expand all Collapse all v0 v0.1.0 May 17, 2026 Changes in this version + func CleaningError(message string) error + func ConfigLoadError(message string) error + func ConfigSaveError(message string) error + func ConfigValidateError(message string) error + func IsNixAvailable() bool + func NixCommandError(message string) error + func ValidationError(field, value, expected string) error + type CleanWizardError struct + Code ErrorCode + Details *ErrorDetails + Level ErrorLevel + Message string + Operation string + Stack string + Timestamp time.Time + func HandleCommandError(cmd *exec.Cmd, err error) *CleanWizardError + func HandleConfigError(operation string, err error) *CleanWizardError + func HandleNixNotAvailable(operation string) *CleanWizardError + func HandleValidationError(operation string, err error) *CleanWizardError + func HandleValidationErrorWithDetails(operation, field string, value any, reason string) *CleanWizardError + func NewError(code ErrorCode, message string) *CleanWizardError + func NewErrorWithDetails(code ErrorCode, message string, details *ErrorDetails) *CleanWizardError + func NewErrorWithLevel(code ErrorCode, level ErrorLevel, message string) *CleanWizardError + func WrapError(err error, code ErrorCode, operation string) *CleanWizardError + func (e *CleanWizardError) Error() string + func (e *CleanWizardError) IsErrorCode(code ErrorCode) bool + func (e *CleanWizardError) IsLevel(level ErrorLevel) bool + func (e *CleanWizardError) IsRetryable() bool + func (e *CleanWizardError) IsUserFriendly() bool + func (e *CleanWizardError) Log() + func (e *CleanWizardError) Unwrap() error + func (e *CleanWizardError) WithDetail(key string, value any) *CleanWizardError + func (e *CleanWizardError) WithLevel(level ErrorLevel) *CleanWizardError + func (e *CleanWizardError) WithOperation(operation string) *CleanWizardError + type ErrorCode int + const ErrCleaningFailed + const ErrCleaningTimeout + const ErrCleanupRollback + const ErrConfigLoad + const ErrConfigSave + const ErrConfigValidation + const ErrInvalidInput + const ErrNixCommandFailed + const ErrNixNotAvailable + const ErrNixStoreCorrupted + const ErrNotFound + const ErrPermissionDenied + const ErrTimeout + const ErrUnknown + func (e ErrorCode) String() string + type ErrorDetails struct + Actual string + Duration string + Expected string + Field string + FilePath string + LineNumber int + Metadata map[string]string + Operation string + RetryCount int + Value string + type ErrorDetailsBuilder struct + func NewErrorDetails() *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) Build() *ErrorDetails + func (b *ErrorDetailsBuilder) WithActual(actual string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithDuration(duration string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithExpected(expected string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithField(field string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithFilePath(path string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithLineNumber(line int) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithMetadata(key, value string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithOperation(operation string) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithRetryCount(count int) *ErrorDetailsBuilder + func (b *ErrorDetailsBuilder) WithValue(value string) *ErrorDetailsBuilder + type ErrorLevel int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelPanic + const LevelWarn + func (e ErrorLevel) LogLevel() string + func (e ErrorLevel) String() string