Exception: MediaTypes::Serialization::CollectionTypeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/media_types/serialization/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ CollectionTypeError

Returns a new instance of CollectionTypeError.



40
41
42
# File 'lib/media_types/serialization/error.rb', line 40

def initialize(type)
  super("Unable to serialize the collection. Input was of type #{type} but I expected an Array.")
end