Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails multiple rescue

begin
  raise 'This exception will be rescued!'
rescue StandardError, AnotherError => e
  puts "Rescued: #{e.inspect}"
end
 
PREVIOUS NEXT
Tagged: #rails #multiple #rescue
ADD COMMENT
Topic
Name
6+5 =