class ActiveSupport::ErrorReporter

def subscribe(subscriber)

The +report+ method +should+ never raise an error.

report(Exception, handled: Boolean, context: Hash)

Register a new error subscriber. The subscriber must respond to
def subscribe(subscriber)
  unless subscriber.respond_to?(:report)
    raise ArgumentError, "Error subscribers must respond to #report"
  end
  @subscribers << subscriber
end