module Roda::RodaPlugins::ErrorMail::InstanceMethods

  1. lib/roda/plugins/error_mail.rb


Public Instance

  1. error_mail
  2. error_mail_content

Public Instance methods


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
51 def error_mail(exception)
52   _error_mail(exception).deliver!
53 end

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
57 def error_mail_content(exception)
58   _error_mail(exception).to_s
59 end