Sha256: d7c160d388d2c42173a82033e6fa7ea7e032caac387cfee545fe7d95a930fe94

Contents?: true

Size: 348 Bytes

Versions: 17

Compression:

Stored size: 348 Bytes

Contents

module Hermes
  class DatabaseErrorHandler
    attr_reader :error_notification_service
    private     :error_notification_service

    def initialize(error_notification_service:)
      @error_notification_service = error_notification_service
    end

    def call(error)
      error_notification_service.capture_exception(error)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hermes-rb-0.9.1 lib/hermes/database_error_handler.rb
hermes-rb-0.9.0 lib/hermes/database_error_handler.rb
hermes-rb-0.8.0 lib/hermes/database_error_handler.rb
hermes-rb-0.7.5 lib/hermes/database_error_handler.rb
hermes-rb-0.7.4 lib/hermes/database_error_handler.rb
hermes-rb-0.7.3 lib/hermes/database_error_handler.rb
hermes-rb-0.7.2 lib/hermes/database_error_handler.rb
hermes-rb-0.7.1 lib/hermes/database_error_handler.rb
hermes-rb-0.7.0 lib/hermes/database_error_handler.rb
hermes-rb-0.6.1 lib/hermes/database_error_handler.rb
hermes-rb-0.6.0 lib/hermes/database_error_handler.rb
hermes-rb-0.5.0 lib/hermes/database_error_handler.rb
hermes-rb-0.4.0 lib/hermes/database_error_handler.rb
hermes-rb-0.3.1 lib/hermes/database_error_handler.rb
hermes-rb-0.3.0 lib/hermes/database_error_handler.rb
hermes-rb-0.2.0 lib/hermes/database_error_handler.rb
hermes-rb-0.1.0 lib/hermes/database_error_handler.rb