class RSpec::Core::SuiteHookContext

Provides an execution context for before/after :suite hooks.
@private

def initialize(hook_description, reporter)

def initialize(hook_description, reporter)
  super(AnonymousExampleGroup, hook_description, {})
  @example_group_instance = AnonymousExampleGroup.new
  @reporter = reporter
end

def set_exception(exception)

rubocop:disable Naming/AccessorMethodName
def set_exception(exception)
  reporter.notify_non_example_exception(exception, "An error occurred in #{description}.")
  RSpec.world.wants_to_quit = true
end