Exception: ActiveSupport::Notifications::InstrumentationSubscriberError

Inherits:
RuntimeError
  • Object
show all
Defined in:
activesupport/lib/active_support/notifications/fanout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ InstrumentationSubscriberError

Returns a new instance of InstrumentationSubscriberError.



13
14
15
16
17
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 13

def initialize(exceptions)
  @exceptions = exceptions
  exception_class_names = exceptions.map { |e| e.class.name }
  super "Exception(s) occurred within instrumentation subscribers: #{exception_class_names.join(', ')}"
end

Instance Attribute Details

#exceptionsObject (readonly)

Returns the value of attribute exceptions



11
12
13
# File 'activesupport/lib/active_support/notifications/fanout.rb', line 11

def exceptions
  @exceptions
end