Ruby - Error Handling
Given this Ruby code, what will be printed?
def test
begin
raise ArgumentError, 'Wrong argument'
rescue ZeroDivisionError
puts 'Zero division error'
rescue ArgumentError
puts 'Argument error caught'
ensure
puts 'Always runs'
end
end
test