Class: Hermes::DatabaseErrorHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/hermes/database_error_handler.rb

Instance Method Summary collapse

Constructor Details

#initialize(error_notification_service:) ⇒ DatabaseErrorHandler

Returns a new instance of DatabaseErrorHandler.



6
7
8
# File 'lib/hermes/database_error_handler.rb', line 6

def initialize(error_notification_service:)
  @error_notification_service = error_notification_service
end

Instance Method Details

#call(error) ⇒ Object



10
11
12
# File 'lib/hermes/database_error_handler.rb', line 10

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