Exceptions
Exceptions raised by v8serialize
.
V8SerializeError
self, message: str, *args: object) V8SerializeError(
The base class that all v8serialize errors are subclasses of.
Attributes
Name | Description |
---|---|
message |
DecodeV8SerializeError
DecodeV8SerializeError(self,
str,
message: *args: object,
int,
position:
data: ReadableBinary, )
Attributes
Name | Description |
---|---|
data | |
position |
EncodeV8SerializeError
self) EncodeV8SerializeError(
UnhandledValueEncodeV8SerializeError
UnhandledValueEncodeV8SerializeError(self,
str,
message: *args: object,
object,
value: )
No encode step is able to represent a Python value in the V8 Serialization format.
Raised when attempting to serialize an object that the none of the configured encode steps know how to represent as V8 serialization tags.
Attributes
Name | Description |
---|---|
value |
FeatureNotEnabledEncodeV8SerializeError
FeatureNotEnabledEncodeV8SerializeError(self,
str,
message: *,
feature_required: SerializationFeature, )
The SerializationFeature required to write a value is not enabled.
Raised when a WritableTagStream is commanded to write data that requires a SerializationFeature
that is not enabled.
Attributes
Name | Description |
---|---|
feature_required |
UnhandledTagDecodeV8SerializeError
UnhandledTagDecodeV8SerializeError(self,
str,
message: *args: object,
tag: SerializationTag,int,
position:
data: ReadableBinary, )
No TagReader
is able to handle a SerializationTag
.
Raised when attempting to deserialize a tag that no TagReader
is able to handle (by reading the tag’s data from the stream and representing the data as a Python object).
Attributes
Name | Description |
---|---|
tag |
IllegalCyclicReferenceV8SerializeError
IllegalCyclicReferenceV8SerializeError(self,
str,
message:
serialized_id: SerializedId,object,
obj: )
Attributes
Name | Description |
---|---|
obj | |
serialized_id |