Exceptions
Exceptions raised by v8serialize.
V8SerializeError
V8SerializeError(message: str, *args: object)The base class that all v8serialize errors are subclasses of.
Attributes
| Name | Description |
|---|---|
| message |
DecodeV8SerializeError
DecodeV8SerializeError(
message: str,
*args: object,
position: int,
data: ReadableBinary,
)Attributes
| Name | Description |
|---|---|
| data | |
| position |
EncodeV8SerializeError
EncodeV8SerializeError()UnhandledValueEncodeV8SerializeError
UnhandledValueEncodeV8SerializeError(message: str, *args: object, value: object)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(
message: str,
*,
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(
message: str,
*args: object,
tag: SerializationTag,
position: int,
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(
message: str,
serialized_id: SerializedId,
obj: object,
)Attributes
| Name | Description |
|---|---|
| obj | |
| serialized_id |