This Week's Trending
This Month's Trending
This Year's Trending
In Ecto programming, could this be described as an anti-pattern?
# Database operation
Repo.some_operation(...)
rescue
error ->
...
New
On a regular basis I’m seeing errors reported to Sentry such as GenServer #PID<0.106725.0> terminating
The “crash reason” reported...
New
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
I have defined a custom exception :
defmodule UnkownBookError do
@moduledoc false
defexception message: "Unknown book id", pl...
New
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
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
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
I am using something like this to to handle Websocket requests:
def handle_in("new_msg", data, socket) do
# do something with dat...
New
I can’t seem to make custom exceptions work. If I define a module like this:
defmodule MyApp.CustomException do
defexception message:...
New
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
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
I need to handle and catch ecto exceptions to return my custom exceptions, my current functions is :
def list_books(filters) when is_...
New
I’m just discovering defexception but I think the docs are not correct (?). It says " The Exception (https://hexdocs.pm/elixir/Exception...
New
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
Hello,
In my Phoenix application, my domain module will return a tuple {:error, reason} to the controller, I have 2 questions :
What...
New
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
I wrote a test like this:
test "Exception should be raised" do
assert_raise MyApp.CustomException, fn -> MyApp.do_something("invali...
New
Neither Sentry nor AppSignal can track BEAM crashes, because they crash together with BEAM. The app automatically restarts, so external m...
New
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
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







