Exception: Hanami::Mailer::DuplicateAttachmentError

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

Overview

Raised when duplicate attachment filenames are detected

Since:

  • 3.0.0

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ DuplicateAttachmentError

Returns a new instance of DuplicateAttachmentError.

Since:

  • 3.0.0



65
66
67
68
69
70
# File 'lib/hanami/mailer/errors.rb', line 65

def initialize(filename)
  super(
    "Duplicate attachment filename: #{filename.inspect}. " \
    "Each attachment must have a unique filename."
  )
end