Tag rescue

9 votes

31746 views

Don't rescue Exception, rescue StandardError

In C# or Java, you can `catch (Exception)` to rescue all exception types. However, in Ruby you should almost never catch `Exception`, but only catch `StandardError`.

implemented

Comments

by ricbrad
ricbrad