Answers for "ruby rescue in a task"

0

ruby catch all exceptions

begin
  raise 'This exception will be rescued!'
rescue StandardError => e
  puts "Rescued: #{e.inspect}"
end
Posted by: Guest on June-29-2020

Browse Popular Code Answers by Language