I recently found out that handling error classes in rescue clauses could lead to surprising behaviours when dealing with multiple levels of inheritance.
Here's a little post I wrote on Ruby rescue clause hierarchy:
https://dev.to/lcsm0n/ruby-exception-handling-pitfall-understanding-rescue-clause-hierarchy-cjo
[#]ruby #rails #learning
=> More informations about this toot | More toots from lucasm@ruby.social
text/gemini
This content has been proxied by September (ba2dc).