Exception: QueryBuilder::Core::AttributeError
- Inherits:
-
KeyError
- Object
- KeyError
- QueryBuilder::Core::AttributeError
- Defined in:
- lib/query_builder/core/attribute_error.rb
Overview
The exception to be raised by AST nodes’ initializers
Instance Method Summary collapse
-
#initialize(problem, list) ⇒ AttributeError
constructor
Initializes the error with problem definition and the list of attributes.
Constructor Details
#initialize(problem, list) ⇒ AttributeError
Initializes the error with problem definition and the list of attributes
14 15 16 17 18 19 20 21 |
# File 'lib/query_builder/core/attribute_error.rb', line 14 def initialize(problem, list) super [ "#{problem} attribute", (list.one? ? ": " : "s: "), list.map { |item| ":#{item}" }.join(", ") ].join IceNine.deep_freeze(self) end |