Versions in this module Expand all Collapse all v0 v0.1.3 Sep 26, 2024 Changes in this version + func DisplayError(w io.Writer, err error) error type Err + func NewFromError[C ErrorCoder](code C, err error) *Err + func (e *Err) IsNil() bool + type Info struct + Context map[string]any + Inner error + StackTrace *internal.StackTrace + Suggestions []string + Timestamp time.Time + func NewInfo() *Info + func (info *Info) IsNil() bool + func (info Info) DisplayInfo(w io.Writer) error v0.1.2 Sep 24, 2024 Changes in this version + type Err struct + Code ErrorCoder + Context map[string]any + Inner error + Message string + Severity SeverityLevel + StackTrace *internal.StackTrace + Suggestions []string + Timestamp time.Time + func NewWithSeverity[C ErrorCoder](severity SeverityLevel, code C, message string) *Err + func New[C ErrorCoder](code C, message string) *Err + func (e *Err) AddContext(key string, value any) + func (e *Err) AddFrame(prefix, call string) + func (e *Err) AddSuggestion(suggestion string) + func (e *Err) ChangeSeverity(new_severity SeverityLevel) + func (e *Err) SetInner(inner error) + func (e Err) Error() string + func (e Err) Value(key string) (any, bool) + type ErrorCoder interface + Int func() int + type SeverityLevel int + const ERROR + const FATAL + const INFO + const WARNING + func (i SeverityLevel) String() string