jvoegele
Announcing Errata, an Elixir library for consistent and structured error handling.
Errata is an Elixir library that promotes a consistent and structured approach to error handling.
Errata provides support for defining custom structured error types, which can either be returned as error values or raised as exceptions.
Errata errors are named, structured types that represent error conditions in an application or library. Being named types means that errors have a unique and meaningful name within a particular context. Being structured types means that errors have a well-defined, consistent structure identifying the nature of the error, and can also have arbitrary contextual information attached to them for logging or debugging purposes.
Trending in Announcing
Earmark is a pure-Elixir Markdown converter.
It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
New
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library.
The progre...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
Other Trending Topics
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn:
This is possible because it now builds on a very stab...
New
If you haven’t tried Hologram yet, what’s stopped you?
Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #ai
- #authentication
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-eu
- #distillery
- #security
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 5- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
nathanl
This looks interesting! Question: the docs say
I thought that was only available in
rescueblocks sinceSystem.stacktrace/0was deprecated years ago - for performance reasons IIRC. Are there any performance implications of using thecreate/1macro?jvoegele
Hi @nathanl,
The
create/1macro usesProcess.info(self(), :current_stacktrace)to fill in the stacktrace. I’m not sure about the efficiency of this function, but I would venture to say that if you are usingcreate/1for creating Errata errors in your codebase then it would probably not be on the critical path and would not affect overall system performance to any appreciable degree.nathanl
Yeah, hopefully you’re not creating errors in a tight loop.
jvoegele
Errata 0.9.0 is out, and it’s a sizable release — some new conveniences, sharper defaults, and a thorough documentation overhaul.
New functions
Errata.create/2— create an error of any type while still capturing the call-site environment, without having torequireeach error module. Since you alreadyrequire Erratato use the guards, you can justaliasyour error modules and write:Errata.to_map/1— convert any Errata error to a plain, JSON-encodable map without needing to know its specific module. Handy at a system boundary (e.g. a Phoenix fallback controller) that handles many error types uniformly.Errata.display_message/1— the bare, human-readable message intended for end users, as distinct fromException.message/1, which combines the message and:reasonfor logs and raised-exception output.Sharper defaults
reasn:instead ofreason:) now raises anArgumentErrorinstead of silently dropping it.Fixes
Elixir.prefix on module names, andenv.file_lineno longer has a stray trailing colon.Docs & tooling
Ordersbounded context), with clearer guidance on choosing between domain, infrastructure, and general errors, and on when to use a distinct error type vs. a:reason.Upgrading
Bump your dependency to:
The only breaking change is the stricter param validation. If you were (perhaps unknowingly) relying on extra keys being ignored, you’ll now get a clear
ArgumentError— in practice this usually just surfaces a typo.Thanks to everyone who’s given Errata a try and shared feedback; it’s genuinely shaped this release. More is always welcome.
jvoegele
Quick update for anyone following along: Errata has reached 1.0.0 — its first stable, production-ready release, with the public API now covered by Semantic Versioning.
Since this thread it has grown a fair bit: error wrapping/chaining (a
:causefield), context enrichment as errors propagate, declared-and-validated:reasons, error reporting via structured logging and telemetry, and HTTP-status mapping by error kind — alongside a thorough documentation pass.I’ve written up the full 1.0.0 picture, with examples, in a dedicated thread:
Thanks to everyone who’s tried Errata and shared feedback — it genuinely shaped the road to 1.0.