Exceptions

Exceptions raised by v8serialize.

V8SerializeError

V8SerializeError(self, message, *args)

The base class that all v8serialize errors are subclasses of.

Attributes

Name Description
message

DecodeV8SerializeError

DecodeV8SerializeError(self, message, *args, position, data)

Attributes

Name Description
data
position

EncodeV8SerializeError

EncodeV8SerializeError(self)

UnhandledValueEncodeV8SerializeError

UnhandledValueEncodeV8SerializeError(self, message, *args, 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, message, *, feature_required)

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, message, *args, tag, position, data)

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, message, serialized_id, obj)

Attributes

Name Description
obj
serialized_id