Analyzing Error Handling in Elixir: An Exploratory Study
Elixir, Repository Mining, Error Handling, Exceptions.
Elixir language combines the expressiveness of the functional paradigm with the robustness and fault tolerance of the Bogdan/Björn's Erlang Abstract Machine (BEAM) virtual machine, inherited from the Erlang language. Despite its growing adoption by industry and ongoing academic research, a specific gap remains in understanding error-handling practices. Although the official documentation recommends the use of standardized return codes instead of throwing exceptions, there are no empirical studies that systematically analyze adherence to these recommendations. This work aims to investigate how error-handling mechanisms are employed in open source projects written in Elixir, identifying usage patterns and adherence to the language documentation. The research is based on Software Repository Mining (SRM), complemented by manual inspection and analysis of metrics extracted from twelve representative projects initially selected.