This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

dogweather
In Ecto programming, could this be described as an anti-pattern? # Database operation Repo.some_operation(...) rescue error -> ...
New
krisleech
On a regular basis I’m seeing errors reported to Sentry such as GenServer #PID<0.106725.0> terminating The “crash reason” reported...
New
sezaru
I’m trying to create a system where I will expose to end users the option to run tasks in the background. I want these users to be able t...
New

Last Three Year's Trending Top

xgeek116
I have defined a custom exception : defmodule UnkownBookError do @moduledoc false defexception message: "Unknown book id", pl...
New
LostKobrakai
I’m in the process of working on a library, where I want to have quite expressive exceptions (due to a lot of domain specific constraints...
New
budgie
I have this function and the exception is being raised as expected. However, the block is still being evaluated even though the condition...
New

Trending Over Three Years Top

verkhovin
Hi guys! Want to open here another discussion about error handling concepts in Elixir because it looks like I really stuck here by mysel...
New
chanon
I am using something like this to to handle Websocket requests: def handle_in("new_msg", data, socket) do # do something with dat...
New
fireproofsocks
I can’t seem to make custom exceptions work. If I define a module like this: defmodule MyApp.CustomException do defexception message:...
New
jeramyRR
I am getting an environment variable in one of my functions, and if that variable is not set or empty then I want to raise an exception b...
New
sheharyarn
The Issue There are a lot of guides available for handling error tuples in Absinthe but next to zero for exceptions. This is important b...
New
xgeek116
I need to handle and catch ecto exceptions to return my custom exceptions, my current functions is : def list_books(filters) when is_...
New
fireproofsocks
I’m just discovering defexception but I think the docs are not correct (?). It says " The Exception (https://hexdocs.pm/elixir/Exception...
New
binarypaladin
I’ve been trying to figure out how to handle the authorization layer of a Phoenix app I’m working on which has brought me full circle to ...
New
xgeek116
Hello, In my Phoenix application, my domain module will return a tuple {:error, reason} to the controller, I have 2 questions : What...
New
xward
Hello ! The goal is to have all exception that occurs and send it to an external service, like sentry. I managed to catch them for: e...
New
fireproofsocks
I wrote a test like this: test "Exception should be raised" do assert_raise MyApp.CustomException, fn -> MyApp.do_something("invali...
New
Athunnea
Neither Sentry nor AppSignal can track BEAM crashes, because they crash together with BEAM. The app automatically restarts, so external m...
New
arjun289
I have an umbrella app(having one core Elixir and two Phoenix apps) running on prod in a docker container. In the dev environment if ther...
New
oliverandrich
I am currently building a small library that has to traverse a tree of nodes and transform this tree into a document. This tree traversal...
New
rakeshtripathy
Hi All, I have upgraded Phoenix to 1.5.14 and plug 1.14. I am getting below error after upgrading. warning: function actions/1 requir...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement