Fork me on GitHub

exception

    Don't rescue Exception, rescue StandardError

    01 Nov 2012

    Richard Bradley

    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`. Read More

    Tags