serialization :: AttributeTypeError :: attribute
Deserialized object that isn't of theexpected_type
serialization :: AttributeTypeError :: attribute=
Deserialized object that isn't of theexpected_type
serialization :: AttributeTypeError :: expected_type
Name of the type expected forattribute
serialization :: AttributeTypeError :: expected_type=
Name of the type expected forattribute
serialization $ AttributeTypeError :: SELF
Type of this instance, automatically specialized in every classserialization $ AttributeTypeError :: message
A short human-readable error message.serialization $ AttributeTypeError :: message=
A short human-readable error message.serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
serialization :: AttributeTypeError :: attribute
Deserialized object that isn't of theexpected_type
serialization :: AttributeTypeError :: attribute=
Deserialized object that isn't of theexpected_type
serialization :: AttributeError :: attribute_name
Name of the problematic attribute inreceiver
serialization :: AttributeError :: attribute_name=
Name of the problematic attribute inreceiver
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
core :: Object :: defaultinit
core :: Error :: defaultinit
serialization :: AttributeTypeError :: expected_type
Name of the type expected forattribute
serialization :: AttributeTypeError :: expected_type=
Name of the type expected forattribute
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: Object :: output_class_name
Display class name on stdout (debug only).serialization :: AttributeError :: receiver
Parent object of the problematic attributeserialization :: AttributeError :: receiver=
Parent object of the problematic attributeserialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
Serializer::serialize
serialization :: AttributeError
Deserialization error related to an attribute ofreceiver
# Invalid dynamic type for a deserialized attribute
class AttributeTypeError
super AttributeError
autoinit receiver, attribute_name, attribute, expected_type
# Deserialized object that isn't of the `expected_type`
var attribute: nullable Object
# Name of the type expected for `attribute`
var expected_type: String
redef var message is lazy do
var attribute = attribute
var found_type = if attribute != null then attribute.class_name else "null"
return "Deserialization Error: {
}Wrong type on `{receiver.class_name}::{attribute_name}` expected `{expected_type}`, got `{found_type}`"
end
end
lib/serialization/serialization_core.nit:187,1--206,3