class ActiveSupport::ErrorReporter
def subscribe(subscriber)
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