Ruby - Error Handling
Why is it recommended to raise errors inheriting from
StandardError instead of Exception in Ruby?StandardError instead of Exception in Ruby?rescue catches only StandardError and its subclasses, not all Exceptions.StandardError ensures they are caught by normal rescue blocks.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions