Sha256: 2509a679564c10ceb20dd482ecc78862c553ff7a033ac89c11ae71ea8f5b0b4f

Contents?: true

Size: 435 Bytes

Versions: 34

Compression:

Stored size: 435 Bytes

Contents

module Messaging
  class ExceptionHandler
    def self.call(exception, context = {})
      Config.error_handlers.each do |handler|
        begin
          handler.call(exception, context)
        rescue => e
          Messaging.logger.error '!!! ERROR HANDLER THREW AN ERROR !!!'
          Messaging.logger.error e
          Messaging.logger.error e.backtrace.join("\n") unless e.backtrace.nil?
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
messaging-4.0.12 lib/messaging/exception_handler.rb
messaging-4.0.11 lib/messaging/exception_handler.rb
messaging-4.0.10 lib/messaging/exception_handler.rb
messaging-4.0.10.pre lib/messaging/exception_handler.rb
messaging-4.0.9 lib/messaging/exception_handler.rb
messaging-4.0.8 lib/messaging/exception_handler.rb
messaging-4.0.7 lib/messaging/exception_handler.rb
messaging-4.0.6 lib/messaging/exception_handler.rb
messaging-4.0.5 lib/messaging/exception_handler.rb
messaging-4.0.4.pre lib/messaging/exception_handler.rb
messaging-4.0.3.pre lib/messaging/exception_handler.rb
messaging-4.0.2.pre lib/messaging/exception_handler.rb
messaging-4.0.1.pre lib/messaging/exception_handler.rb
messaging-4.0.0.pre lib/messaging/exception_handler.rb
messaging-3.8.2 lib/messaging/exception_handler.rb
messaging-3.8.1 lib/messaging/exception_handler.rb
messaging-3.8.0 lib/messaging/exception_handler.rb
messaging-3.7.3 lib/messaging/exception_handler.rb
messaging-3.7.2 lib/messaging/exception_handler.rb
messaging-3.7.1 lib/messaging/exception_handler.rb