Ruby exception handling

begin
result = risky_operation
rescue StandardError => e
puts "Risky operation FAILED: #{e}"
end

Comments

Popular posts from this blog

Rails Memcache issues

scp command usage guide

cucumber usage in rails project