Class: Exceptioner::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/exceptioner/notifier.rb

Class Method Summary collapse

Class Method Details

.dispatch(exception, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/exceptioner/notifier.rb', line 4

def self.dispatch(exception, options = {})
  if dispatch_exception?
    options = determine_options(exception, options.dup)
    determine_transports(options) do |transport|
      transport.deliver(options)
    end
  end
end