Method: RSpec::Core::MultipleExceptionError#initialize

Defined in:
lib/rspec/core/formatters/exception_presenter.rb

#initialize(*exceptions) ⇒ MultipleExceptionError

Returns a new instance of MultipleExceptionError.

Parameters:

  • exceptions (Array<Exception>)

    The initial list of exceptions.



524
525
526
527
528
529
530
531
532
533
534
# File 'lib/rspec/core/formatters/exception_presenter.rb', line 524

def initialize(*exceptions)
  super()

  @failures                = []
  @other_errors            = []
  @all_exceptions          = []
  @aggregation_metadata    = { :hide_backtrace => true }
  @aggregation_block_label = nil

  exceptions.each { |e| add e }
end