Exception: MediaTypes::Errors::CollectionDefinitionNotFound

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

Instance Method Summary collapse

Constructor Details

#initialize(current, target) ⇒ CollectionDefinitionNotFound

Returns a new instance of CollectionDefinitionNotFound.



20
21
22
# File 'lib/media_types/errors.rb', line 20

def initialize(current, target)
  super(format('Unable to use %<target>s as a collection inside %<current>s, no such schema has been defined.', current: current, target: target))
end