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 | View the thread | More toots from lucasm@ruby.social
=> View ruby tag | View rails tag | View learning tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini