Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby begin rescue ensure

begin
  fire_ze_missiles
rescue
  retry #just once more for good luck
else
  log "We set up them the bomb."
ensure
  wtf_mate
end
Source by blog.newrelic.com #
 
PREVIOUS NEXT
Tagged: #ruby #rescue #ensure
ADD COMMENT
Topic
Name
1+7 =