Exception: Hanami::Mailer::DuplicateAttachmentError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/mailer/errors.rb

Overview

Raised when duplicate attachment filenames are detected

Instance Method Summary collapse

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