Public Instance methods
error_mail(exception)
Send an email for the given error. exception
is usually an exception instance, but it can be a plain string which is used as the subject for the email.
[show source]
# File lib/roda/plugins/error_mail.rb 57 def error_mail(exception) 58 _error_mail(exception).deliver! 59 end
error_mail_content(exception)
The content of the email to send, include the headers and the body. Takes the same argument as error_mail
.
[show source]
# File lib/roda/plugins/error_mail.rb 63 def error_mail_content(exception) 64 _error_mail(exception).to_s 65 end