jvoegele
Errata - Structured error handling for Elixir
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.
Most Liked
jvoegele
Hi @nathanl,
The create/1 macro uses Process.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 using create/1 for 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.







