Section navigation

Public namespace Rowles.LeanCorpus.Codecs.CodecKit.Exceptions

Classes

Public class ChecksumMismatchException

A checksum verification failed.

Public class CodecException

Base class for all codec-related exceptions. Carries structured diagnostic information: byte offset, path, and machine-readable error code.

Public class CodecFormatException

The wire format violates a structural constraint: truncated data, trailing bytes, unknown discriminator or version.

Public class CodecIntegrityException

Data integrity check failed (e.g. checksum mismatch).

Public class CodecResourceException

A configured resource limit was exceeded: frame overflow, nesting depth, scratch buffer size, etc.

Public class CodecValidationException

A Validate predicate returned false, or an invalid value was decoded (wrong magic, bad padding, invalid boolean/UTF-8).

Public class FrameOverflowException

Encoded payload exceeds a fixed frame size.

Public class InsufficientDataException

Not enough bytes available to decode the expected value.

Public class InvalidBooleanException

A boolean byte was not 0x00 or 0x01.

Public class InvalidPaddingException

Padding bytes did not match the expected fill value.

Public class InvalidScopeException

An operation requires a delimited scope but none is active (e.g., *Remaining codecs outside LengthPrefixed).

Public class InvalidUtf8Exception

A byte sequence is not valid UTF-8.

Public class LimitExceededException

A configured limit was exceeded (e.g., MaxFrameBytes, MaxSequenceElements).

Public class MagicMismatchException

A magic byte pattern did not match.

Public class TrailingDataException

Unexpected trailing bytes after the expected payload.

Public class UnknownDiscriminatorException

A choice discriminator value has no matching case.

Public class UnknownVersionException

A version number has no matching case in a Versioned codec.

Public class UserCodeException

A user-supplied delegate (e.g., Map, Record.Build) threw an exception.