Exception: Hanami::Mailer::DuplicateAttachmentError
- Defined in:
- lib/hanami/mailer/errors.rb
Overview
Raised when duplicate attachment filenames are detected
Instance Method Summary collapse
-
#initialize(filename) ⇒ DuplicateAttachmentError
constructor
A new instance of DuplicateAttachmentError.
Constructor Details
#initialize(filename) ⇒ DuplicateAttachmentError
Returns a new instance of DuplicateAttachmentError.
59 60 61 62 63 64 |
# File 'lib/hanami/mailer/errors.rb', line 59 def initialize(filename) super( "Duplicate attachment filename: #{filename.inspect}. " \ "Each attachment must have a unique filename." ) end |