Exception: MailControl::InvalidField

Inherits:
MailControlError show all
Defined in:
lib/mail-control/errors.rb

Overview

This error is raised when trying to store a field that doesn’t exist

Example:

InvalidField.new('field_name')

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidField

Returns a new instance of InvalidField.



32
33
34
# File 'lib/mail-control/errors.rb', line 32

def initialize message
  @message = "Invalid Field: #{message}"
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



30
31
32
# File 'lib/mail-control/errors.rb', line 30

def message
  @message
end