Exception: Foobara::DataPath::TooManyValuesAtPathError
- Inherits:
-
StandardError
- Object
- StandardError
- Foobara::DataPath::TooManyValuesAtPathError
- Defined in:
- foobara-0.0.110/projects/common/src/data_path.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(path, values) ⇒ TooManyValuesAtPathError
constructor
A new instance of TooManyValuesAtPathError.
- #message ⇒ Object
Constructor Details
#initialize(path, values) ⇒ TooManyValuesAtPathError
Returns a new instance of TooManyValuesAtPathError.
13 14 15 16 17 18 |
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 13 def initialize(path, values) self.path = path self.values = values super() end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
11 12 13 |
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 11 def path @path end |
#values ⇒ Object
Returns the value of attribute values.
11 12 13 |
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 11 def values @values end |
Instance Method Details
#message ⇒ Object
20 21 22 |
# File 'foobara-0.0.110/projects/common/src/data_path.rb', line 20 def "Expected only one value to be at #{path} but there were #{values.size}: #{values}" end |