Class: ErrorMailer
Defined Under Namespace
Modules: BlankSlate, Logger, ReraiseCtrlC
Class Method Summary
collapse
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
|