Fork me on GitHub

rescue

    Don't rescue Exception, rescue StandardError

    01 Nov 2012

    Richard Bradley (richard.bradley@softwire.com)

    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