#[non_exhaustive]pub enum ComponentStateError {
Show 28 variants
EmptyCodecId,
CodecIdTooLong {
max_bytes: usize,
},
ZeroCodecVersion,
NonIncreasingCodecUpgrade,
TooLarge {
max_bytes: usize,
},
TooDeep {
max_depth: usize,
},
Malformed,
SchemaMismatch,
UnsupportedSchemaVersion {
found: u32,
current: u32,
},
NoSchemaUpgradePath {
found: u32,
current: u32,
},
AmbiguousSchemaUpgrade {
from: u32,
},
SchemaUpgradeOvershootsCurrent {
to: u32,
current: u32,
},
SchemaUpgradeChainTooLong {
max_upgrades: usize,
},
UnknownCodec,
UnsupportedCodecVersion {
found: u32,
current: u32,
},
ExternalSchemaMigrationUnsupported {
found: u32,
current: u32,
},
ExternalCodecMigrationUnsupported {
found: u32,
current: u32,
},
NoCodecUpgradePath {
found: u32,
current: u32,
},
AmbiguousCodecUpgrade {
from: u32,
},
CodecUpgradeOvershootsCurrent {
to: u32,
current: u32,
},
CodecUpgradeChainTooLong {
max_upgrades: usize,
},
ChecksumAlgorithmUnsupported {
algorithm: u16,
version: u16,
},
ChecksumMismatch,
ExternalReferenceMissing,
ExternalReferenceContentMismatch,
InvalidPayload,
PayloadNotObject,
Codec(StateCodecError),
}Expand description
Stable, value-redacted component-state validation failure.
No variant carries payload data: every field is a scalar identity or
bound, mirroring StateError’s own redaction discipline.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyCodecId
A codec identifier was empty.
CodecIdTooLong
A codec identifier exceeded its UTF-8 byte limit.
ZeroCodecVersion
A codec version was zero.
NonIncreasingCodecUpgrade
A declared codec-version upgrade did not strictly increase the version.
TooLarge
A serialized value exceeded its configured byte limit.
TooDeep
A serialized value exceeded its configured JSON depth.
Malformed
The bytes were not a valid envelope payload.
SchemaMismatch
The envelope schema does not match the selected codec.
UnsupportedSchemaVersion
Durable data was produced by a newer application schema.
Fields
NoSchemaUpgradePath
The codec declares no directed schema upgrade reaching its current version.
Fields
AmbiguousSchemaUpgrade
Two declared schema upgrades leave the same version.
SchemaUpgradeOvershootsCurrent
A declared schema upgrade produces a version past the codec’s current version.
Fields
SchemaUpgradeChainTooLong
The resolved schema-upgrade chain exceeded its bound.
UnknownCodec
The envelope’s codec identity does not match the selected codec.
UnsupportedCodecVersion
Durable data was produced by a newer codec version.
Fields
ExternalSchemaMigrationUnsupported
An older external payload cannot be migrated without resolving its out-of-band bytes.
Fields
ExternalCodecMigrationUnsupported
An older external payload cannot be migrated without resolving its out-of-band bytes.
Fields
NoCodecUpgradePath
The codec declares no directed codec-version upgrade reaching its current version.
Fields
AmbiguousCodecUpgrade
Two declared codec-version upgrades leave the same version.
CodecUpgradeOvershootsCurrent
A declared codec-version upgrade produces a version past the codec’s current version.
Fields
CodecUpgradeChainTooLong
The resolved codec-upgrade chain exceeded its bound.
ChecksumAlgorithmUnsupported
The declared checksum algorithm identity/version is not supported.
Fields
ChecksumMismatch
The computed checksum does not match the recorded checksum.
No decode and no migration were attempted.
ExternalReferenceMissing
The payload is an external reference that has not been resolved.
ExternalReferenceContentMismatch
Resolved external content did not match its declared content identity.
InvalidPayload
The application payload was not valid JSON.
PayloadNotObject
The application payload was valid JSON but not an object.
Codec(StateCodecError)
The application codec rejected the payload without exposing its value.
Trait Implementations§
Source§impl Clone for ComponentStateError
impl Clone for ComponentStateError
Source§impl Debug for ComponentStateError
impl Debug for ComponentStateError
Source§impl Display for ComponentStateError
impl Display for ComponentStateError
impl Eq for ComponentStateError
Source§impl Error for ComponentStateError
impl Error for ComponentStateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()