What To Do When You Don't Rescue
begin
do_something_that_could_fail()
rescue StandardError => e
# oh no!
ensure
Logging.info("We attempted to do the thing.")
endbegin
do_something_that_could_fail()
rescue StandardError => e
Logging.info("We tried to do something and it failed.")
else
Logging.info("We successfully did the thing!")
endLast updated