Exception: Safrano::API::ModelDuplicateAttributeError

Inherits:
NameError
  • Object
show all
Defined in:
lib/odata/error.rb

Overview

duplicate attribute name

Instance Method Summary collapse

Constructor Details

#initialize(klass, symb) ⇒ ModelDuplicateAttributeError

Returns a new instance of ModelDuplicateAttributeError.



43
44
45
46
47
# File 'lib/odata/error.rb', line 43

def initialize(klass, symb)
  symbname = symb.to_s
  msg = "There is already an attribute :#{symbname} defined in class #{klass}"
  super(msg, symbname)
end