Exception: MediaTypes::Errors::CollectionDefinitionNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- MediaTypes::Errors::CollectionDefinitionNotFound
- Defined in:
- lib/media_types/errors.rb
Instance Method Summary collapse
-
#initialize(current, target) ⇒ CollectionDefinitionNotFound
constructor
A new instance of CollectionDefinitionNotFound.
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 |