DocumentDecodingException

Thrown when a document cannot be decoded from storage.

A document is stored as one key per field, so a read can fail on a single field while the rest are intact. This exception names the documentKey and, when one field is implicated, the field, and attaches the underlying cause. It is raised instead of a bare SerializationException so that callers never have to depend on the serialization layer's error types.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

the key of the document whose decode failed.

Link copied to clipboard

the field whose stored value could not be decoded, or null when no single field is implicated.

Link copied to clipboard
expect open val message: String?