Rowles.LeanCorpus.Codecs.CodecKit.Exceptions
Classes
ChecksumMismatchException
A checksum verification failed.
CodecException
Base class for all codec-related exceptions. Carries structured diagnostic information: byte offset, path, and machine-readable error code.
CodecFormatException
The wire format violates a structural constraint: truncated data, trailing bytes, unknown discriminator or version.
CodecIntegrityException
Data integrity check failed (e.g. checksum mismatch).
CodecResourceException
A configured resource limit was exceeded: frame overflow, nesting depth, scratch buffer size, etc.
CodecValidationException
A
Validatepredicate returned false, or an invalid value was decoded (wrong magic, bad padding, invalid boolean/UTF-8).
FrameOverflowException
Encoded payload exceeds a fixed frame size.
InsufficientDataException
Not enough bytes available to decode the expected value.
InvalidBooleanException
A boolean byte was not 0x00 or 0x01.
InvalidPaddingException
Padding bytes did not match the expected fill value.
InvalidScopeException
An operation requires a delimited scope but none is active (e.g., *Remaining codecs outside LengthPrefixed).
InvalidUtf8Exception
A byte sequence is not valid UTF-8.
LimitExceededException
A configured limit was exceeded (e.g., MaxFrameBytes, MaxSequenceElements).
MagicMismatchException
A magic byte pattern did not match.
TrailingDataException
Unexpected trailing bytes after the expected payload.
UnknownDiscriminatorException
A choice discriminator value has no matching case.
UnknownVersionException
A version number has no matching case in a Versioned codec.
UserCodeException
A user-supplied delegate (e.g., Map, Record.Build) threw an exception.