123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::ErrorReporter::TestHelper::ErrorSubscriber

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/error_reporter/test_helper.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newErrorSubscriber

[ GitHub ]

  
# File 'activesupport/lib/active_support/error_reporter/test_helper.rb', line 7

def initialize
  @events = []
end

Instance Attribute Details

#events (readonly)

[ GitHub ]

  
# File 'activesupport/lib/active_support/error_reporter/test_helper.rb', line 5

attr_reader :events

Instance Method Details

#report(error, handled:, severity:, source:, context:)

[ GitHub ]

  
# File 'activesupport/lib/active_support/error_reporter/test_helper.rb', line 11

def report(error, handled:, severity:, source:, context:)
  @events << [error, handled, severity, source, context]
end