Versions in this module Expand all Collapse all v1 v1.0.0 Jun 25, 2026 Changes in this version + const ExitConfigError + const ExitGeneralError + const ExitRuntimeError + const ExitSuccess + const ExitUsageError + const ExitValidationError + func GetExitCode(err error) int + func Wrap(err error, message string) error + type BaseError struct + Cause error + Component string + ExitCode int + Message string + Operation string + Suggestions []string + func New(message string) *BaseError + func NewUsageError(message string, suggestions ...string) *BaseError + func NewWithContext(component, operation, message string) *BaseError + func WrapAttestor(err error, attestorID, phase string) *BaseError + func WrapPipeline(err error, phase, attestorID string) *BaseError + func WrapWithContext(err error, component, operation, message string) *BaseError + func (e *BaseError) Error() string + func (e *BaseError) Suggest(suggestions ...string) *BaseError + func (e *BaseError) Unwrap() error + func (e *BaseError) WithExitCode(code int) *BaseError + type ValidationError struct + Fields map[string][]string + func NewValidator() *ValidationError + func NewValidatorFor(component string) *ValidationError + func (v *ValidationError) AddError(field, message string) + func (v *ValidationError) Error() string + func (v *ValidationError) HasErrors() bool