Exception: MediaTypes::Serialization::CollectionTypeError
- Inherits:
-
RuntimeError
- Object
- StandardError
- Error
- RuntimeError
- MediaTypes::Serialization::CollectionTypeError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ CollectionTypeError
constructor
A new instance of CollectionTypeError.
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 |