Exception: DatoDast::Errors::InvalidItemsConfiguration

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dato_dast/errors/invalid_items_configuration.rb

Constant Summary collapse

MESSAGE =
<<~MSG.strip
  An item configuration requires exactly one of the following keys:
  - "node"
  - "render_value"
  - "structure"

  The following configurations are invalid:
MSG

Instance Method Summary collapse

Constructor Details

#initialize(keys) ⇒ InvalidItemsConfiguration



13
14
15
# File 'lib/dato_dast/errors/invalid_items_configuration.rb', line 13

def initialize(keys)
  super(MESSAGE + " " + keys.join(", "))
end