Rescue's Elegant Trick for Knowing Which Exceptions to Catch
You probably know how to ask Ruby to rescue specific exceptions. But how does Ruby know if a particular exception meets your criteria? In this article, we’ll walk through Ruby’s simple exception matching mechanism and see how we can use it to our advantage. - http://blog.honeybadger.io/ruby-rescue-elegant-trick-for-knowing-which-exceptions-to-catch/
Post a comment