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
- .new ⇒ ErrorSubscriber constructor
Instance Attribute Summary
- #events readonly
Instance Method Summary
Constructor Details
.new ⇒ ErrorSubscriber
# 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