Exception: Xeroizer::SettingTotalDirectlyNotSupported

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xeroizer/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name) ⇒ SettingTotalDirectlyNotSupported

Returns a new instance of SettingTotalDirectlyNotSupported.



89
90
91
# File 'lib/xeroizer/exceptions.rb', line 89

def initialize(attribute_name)
  @attribute_name = attribute_name
end

Instance Method Details

#messageObject



93
94
95
# File 'lib/xeroizer/exceptions.rb', line 93

def message
  "Can't set the total #{@attribute_name} directly as this is calculated automatically."
end