Module: Caffeinate::Dripper::Rescuable::ClassMethods

Defined in:
lib/caffeinate/dripper/rescuable.rb

Instance Method Summary collapse

Instance Method Details

#deliver!(mailing) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/caffeinate/dripper/rescuable.rb', line 12

def deliver!(mailing)
  begin
    super
  rescue Exception => exception
    if self.rescue_with_handler(exception, object: mailing)
      return
    end
    raise
  end
end