Question : rails multiple rescue
Answered by : lior
begin raise 'This exception will be rescued!'
rescue StandardError, AnotherError => e puts "Rescued: #{e.inspect}"
end
Source : | Last Update : Thu, 02 Jun 22
Answered by : lior
begin raise 'This exception will be rescued!'
rescue StandardError, AnotherError => e puts "Rescued: #{e.inspect}"
end
Source : | Last Update : Thu, 02 Jun 22