[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/errors](https://jsprismarine.dev/api/@jsprismarine/errors/index.md) / protocol/codec

# protocol/codec

## Variables

### ProtocolCodecErrors

> `const` **ProtocolCodecErrors**: `Readonly`\<\{ `AttributeLayerDataNotDecoded`: *typeof* `AttributeLayerDataNotDecoded`; `BatchChecksumMismatch`: *typeof* `BatchChecksumMismatch`; `BatchLengthOverflow`: *typeof* `BatchLengthOverflow`; `BatchLengthTruncated`: *typeof* `BatchLengthTruncated`; `BatchLengthUnterminated`: *typeof* `BatchLengthUnterminated`; `BatchMissingCompressionByte`: *typeof* `BatchMissingCompressionByte`; `BatchPacketTruncated`: *typeof* `BatchPacketTruncated`; `BiomeChunkGenerationDataUnsupported`: *typeof* `BiomeChunkGenerationDataUnsupported`; `BlockPaletteMismatch`: *typeof* `BlockPaletteMismatch`; `ContextCodecMismatch`: *typeof* `ContextCodecMismatch`; `DataItemPayloadMismatch`: *typeof* `DataItemPayloadMismatch`; `DuplicateCodecVersion`: *typeof* `DuplicateCodecVersion`; `DuplicatePacketId`: *typeof* `DuplicatePacketId`; `EmptyBatchPacket`: *typeof* `EmptyBatchPacket`; `EmptyCodecRegistry`: *typeof* `EmptyCodecRegistry`; `EncryptedBatchTooShort`: *typeof* `EncryptedBatchTooShort`; `FragmentCountMismatch`: *typeof* `FragmentCountMismatch`; `FragmentWithoutCompression`: *typeof* `FragmentWithoutCompression`; `FragmentWithoutZlib`: *typeof* `FragmentWithoutZlib`; `HandshakePacketHasNoId`: *typeof* `HandshakePacketHasNoId`; `HeightmapRowWrongLength`: *typeof* `HeightmapRowWrongLength`; `HeightmapWrongRowCount`: *typeof* `HeightmapWrongRowCount`; `InvalidChunkCoordinates`: *typeof* `InvalidChunkCoordinates`; `InvalidEncryptionKey`: *typeof* `InvalidEncryptionKey`; `ItemDataCodecMismatch`: *typeof* `ItemDataCodecMismatch`; `LevelSettingsNotDecodable`: *typeof* `LevelSettingsNotDecodable`; `MissingActorIdentifiers`: *typeof* `MissingActorIdentifiers`; `MissingBiomeDefinitions`: *typeof* `MissingBiomeDefinitions`; `MissingCommandSubcommandTable`: *typeof* `MissingCommandSubcommandTable`; `MissingConstraintEnum`: *typeof* `MissingConstraintEnum`; `MissingEnumValue`: *typeof* `MissingEnumValue`; `MissingItemData`: *typeof* `MissingItemData`; `MissingJigsawStructureData`: *typeof* `MissingJigsawStructureData`; `MissingParameterEnum`: *typeof* `MissingParameterEnum`; `MissingParameterPostfix`: *typeof* `MissingParameterPostfix`; `MissingParameterSoftEnum`: *typeof* `MissingParameterSoftEnum`; `MissingParameterSubcommandTable`: *typeof* `MissingParameterSubcommandTable`; `MissingSubcommandValue`: *typeof* `MissingSubcommandValue`; `MissingTransactionBody`: *typeof* `MissingTransactionBody`; `NoReadBuffer`: *typeof* `NoReadBuffer`; `NoReleaseCodec`: *typeof* `NoReleaseCodec`; `NotBatch`: *typeof* `NotBatch`; `NotNbtTag`: *typeof* `NotNbtTag`; `PacketHasNoData`: *typeof* `PacketHasNoData`; `PacketHasNoDefaultNetworkId`: *typeof* `PacketHasNoDefaultNetworkId`; `PacketIdMismatch`: *typeof* `PacketIdMismatch`; `PayloadNotDecodable`: *typeof* `PayloadNotDecodable`; `SeveralPreviewCodecs`: *typeof* `SeveralPreviewCodecs`; `SnappyBlockTooLarge`: *typeof* `SnappyBlockTooLarge`; `SnappyCopyOutOfRange`: *typeof* `SnappyCopyOutOfRange`; `SnappyLengthMismatch`: *typeof* `SnappyLengthMismatch`; `SnappyLengthOverflow`: *typeof* `SnappyLengthOverflow`; `SnappyLengthPrefixUnterminated`: *typeof* `SnappyLengthPrefixUnterminated`; `SnappyLiteralOutOfRange`: *typeof* `SnappyLiteralOutOfRange`; `SnappyTruncatedFourByteCopy`: *typeof* `SnappyTruncatedFourByteCopy`; `SnappyTruncatedLengthPrefix`: *typeof* `SnappyTruncatedLengthPrefix`; `SnappyTruncatedLiteralLength`: *typeof* `SnappyTruncatedLiteralLength`; `SnappyTruncatedOneByteCopy`: *typeof* `SnappyTruncatedOneByteCopy`; `SnappyTruncatedTwoByteCopy`: *typeof* `SnappyTruncatedTwoByteCopy`; `StalePreviewCodec`: *typeof* `StalePreviewCodec`; `StringAttributeUnsupported`: *typeof* `StringAttributeUnsupported`; `UnknownAttributePayloadAlternative`: *typeof* `UnknownAttributePayloadAlternative`; `UnknownAttributeValueAlternative`: *typeof* `UnknownAttributeValueAlternative`; `UnknownDataItemPayload`: *typeof* `UnknownDataItemPayload`; `UnknownDataStoreValueType`: *typeof* `UnknownDataStoreValueType`; `UnknownEasingFunctionId`: *typeof* `UnknownEasingFunctionId`; `UnknownEnumName`: *typeof* `UnknownEnumName`; `UnknownEnumValue`: *typeof* `UnknownEnumValue`; `UnknownItemUserDataMarker`: *typeof* `UnknownItemUserDataMarker`; `UnknownItemUserDataVersion`: *typeof* `UnknownItemUserDataVersion`; `UnknownParameterType`: *typeof* `UnknownParameterType`; `UnknownPrimitiveShapeExtraDataAlternative`: *typeof* `UnknownPrimitiveShapeExtraDataAlternative`; `UnsupportedCompressionAlgorithm`: *typeof* `UnsupportedCompressionAlgorithm`; \}\>

Defined in: [packages/errors/src/protocol/codec.ts:2812](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/protocol/codec.ts#L2812)

The errors the codec code of `@jsprismarine/protocol` throws.
