Exception: Safrano::API::ModelDuplicateAttributeError
- Inherits:
-
NameError
- Object
- NameError
- Safrano::API::ModelDuplicateAttributeError
- Defined in:
- lib/odata/error.rb
Overview
duplicate attribute name
Instance Method Summary collapse
-
#initialize(klass, symb) ⇒ ModelDuplicateAttributeError
constructor
A new instance of ModelDuplicateAttributeError.
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 |