Class: ErrorMailer

Inherits:
Object
  • Object
show all
Extended by:
BlankSlate, Logger, ReraiseCtrlC
Defined in:
lib/ruby-app/error_mailer.rb,
lib/ruby-app/error_mailer.rb

Defined Under Namespace

Modules: BlankSlate, Logger, ReraiseCtrlC

Class Method Summary collapse

Methods included from ReraiseCtrlC

exception

Methods included from Logger

exception, message

Methods included from BlankSlate

exception, message

Class Method Details

.mail_exception(e) ⇒ Object



45
46
47
# File 'lib/ruby-app/error_mailer.rb', line 45

def mail_exception(e)
  exception(e)
end

.mail_message(m) ⇒ Object



41
42
43
# File 'lib/ruby-app/error_mailer.rb', line 41

def mail_message(m)
  message(m)
end

.safe(&block) ⇒ Object



49
50
51
52
53
54
# File 'lib/ruby-app/error_mailer.rb', line 49

def safe(&block)
  yield

rescue => ex
  self.mail_exception(ex)
end