Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.24 KB

File metadata and controls

28 lines (22 loc) · 1.24 KB

Changelog

All notable changes to this project are documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.0 - 2026-06-03

Added

  • One concrete Error type carrying a message, severity, optional machine-readable code, and an optional wrapped cause; satisfies the standard error interface and Unwrap so errors.Is / errors.As / errors.Unwrap traverse the chain.
  • New (leaf / sentinel constructor) and Wrap (anyhow-style context wrap; nil in → nil out; inherits the wrapped severity by default).
  • WithSeverity and WithCode constructor options.
  • SeverityOf (walks the chain, defaults to SeverityError) and CodeOf (first non-empty code, outermost first).
  • Join aggregate mirroring errors.Join with rolled-up severity (max) and code (first non-empty), errors.Is / errors.As reaching every member.
  • Severity ladder (SeverityNotice / SeverityWarning / SeverityError) with String() and DefaultSeverity.