Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubycustom exceptionsSingle-choice MCQ

Given `class FatalError < Exception; end`, what does this print?

class FatalError < Exception; end begin begin raise FatalError, "boom" rescue => e puts "caught by bare rescue: #{e.class}" end rescue Exception => e puts "caught by Exception rescue: #{e.class}" end