Exception: Transmutation::Serialization::Lookup::SerializerNotFound
- Inherits:
-
Error
- Object
- StandardError
- Error
- Transmutation::Serialization::Lookup::SerializerNotFound
- Defined in:
- lib/transmutation/serialization/lookup/serializer_not_found.rb
Instance Attribute Summary collapse
- #name ⇒ Object readonly
- #namespace ⇒ Object readonly
- #object ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(object, namespace: nil, name: nil) ⇒ SerializerNotFound
constructor
A new instance of SerializerNotFound.
Constructor Details
#initialize(object, namespace: nil, name: nil) ⇒ SerializerNotFound
Returns a new instance of SerializerNotFound.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/transmutation/serialization/lookup/serializer_not_found.rb', line 10 def initialize(object, namespace: nil, name: nil) @object = object @namespace = namespace @name = name super [ "Couldn't find serializer for #{object.class.name}#{namespace.empty? ? "" : " in #{namespace}"}.", "Tried looking for the following classes: #{attempted_lookups}." ].join(" ") end |
Instance Attribute Details
#name ⇒ Object (readonly)
8 9 10 |
# File 'lib/transmutation/serialization/lookup/serializer_not_found.rb', line 8 def name @name end |
#namespace ⇒ Object (readonly)
8 9 10 |
# File 'lib/transmutation/serialization/lookup/serializer_not_found.rb', line 8 def namespace @namespace end |
#object ⇒ Object (readonly)
8 9 10 |
# File 'lib/transmutation/serialization/lookup/serializer_not_found.rb', line 8 def object @object end |