Exception: AdequateSerialization::Serializer::ClassNotFoundError
- Inherits:
-
Error
- Object
- StandardError
- Error
- AdequateSerialization::Serializer::ClassNotFoundError
- Defined in:
- lib/adequate_serialization/serializer.rb
Instance Method Summary collapse
-
#initialize(serializer, serializes) ⇒ ClassNotFoundError
constructor
A new instance of ClassNotFoundError.
Constructor Details
#initialize(serializer, serializes) ⇒ ClassNotFoundError
Returns a new instance of ClassNotFoundError.
6 7 8 9 10 11 12 13 |
# File 'lib/adequate_serialization/serializer.rb', line 6 def initialize(serializer, serializes) super(<<~MSG) AdequateSerialization was unable to find the associated class to serialize for #{serializer}. It expected to find a class named #{serializes}. This could mean that it was incorrectly named, or that you have yet to create the class that it will serialize. MSG end |