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

# client

## Classes

- [UsageError](https://jsprismarine.dev/api/@jsprismarine/errors/client/classes/UsageError.md)

## Variables

### ClientErrors

> `const` **ClientErrors**: `Readonly`\<\{ `AlreadyConnected`: *typeof* `AlreadyConnected`; `ClientOutdated`: *typeof* `ClientOutdated`; `CommandLineRejected`: *typeof* `CommandLineRejected`; `CountBelowOne`: *typeof* `CountBelowOne`; `DisconnectedByServer`: *typeof* `DisconnectedByServer`; `DisconnectedByServerWithoutReason`: *typeof* `DisconnectedByServerWithoutReason`; `DisconnectedDuringLogin`: *typeof* `DisconnectedDuringLogin`; `DuplicatePacketId`: *typeof* `DuplicatePacketId`; `ExchangeNeverHappened`: *typeof* `ExchangeNeverHappened`; `ExchangeSubjectNotDecoded`: *typeof* `ExchangeSubjectNotDecoded`; `ExchangeWithoutPosition`: *typeof* `ExchangeWithoutPosition`; `HandshakeTokenHasNoKey`: *typeof* `HandshakeTokenHasNoKey`; `HandshakeTokenHasNoSalt`: *typeof* `HandshakeTokenHasNoSalt`; `HandshakeTokenNotJwt`: *typeof* `HandshakeTokenNotJwt`; `InvalidCommandLineArguments`: *typeof* `InvalidCommandLineArguments`; `InvalidDuration`: *typeof* `InvalidDuration`; `InvalidLinkLoss`: *typeof* `InvalidLinkLoss`; `InvalidPercentage`: *typeof* `InvalidPercentage`; `InvalidRate`: *typeof* `InvalidRate`; `InvalidWholeNumber`: *typeof* `InvalidWholeNumber`; `JavaFrameMalformed`: *typeof* `JavaFrameMalformed`; `JavaSessionJoinRequired`: *typeof* `JavaSessionJoinRequired`; `LinkAlreadyConditioned`: *typeof* `LinkAlreadyConditioned`; `LoginRefused`: *typeof* `LoginRefused`; `LoginTimedOut`: *typeof* `LoginTimedOut`; `MissingOption`: *typeof* `MissingOption`; `NegativeLinkLatency`: *typeof* `NegativeLinkLatency`; `NethernetConnectionFailed`: *typeof* `NethernetConnectionFailed`; `NethernetConnectionTimedOut`: *typeof* `NethernetConnectionTimedOut`; `NethernetFrameNotBatch`: *typeof* `NethernetFrameNotBatch`; `NotNethernetServer`: *typeof* `NotNethernetServer`; `PacketHeaderTruncated`: *typeof* `PacketHeaderTruncated`; `PacketHeaderUnterminated`: *typeof* `PacketHeaderUnterminated`; `PickFromEmptyList`: *typeof* `PickFromEmptyList`; `ServerFull`: *typeof* `ServerFull`; `ServerOutdated`: *typeof* `ServerOutdated`; `SpawnedWithoutStartGame`: *typeof* `SpawnedWithoutStartGame`; `TransportNotConnected`: *typeof* `TransportNotConnected`; `UnexpectedJavaPacket`: *typeof* `UnexpectedJavaPacket`; `UnknownBehavior`: *typeof* `UnknownBehavior`; `UnknownJavaPacket`: *typeof* `UnknownJavaPacket`; `UnknownNetwork`: *typeof* `UnknownNetwork`; `UnsupportedProtocol`: *typeof* `UnsupportedProtocol`; \}\>

Defined in: [packages/errors/src/client.ts:1383](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/errors/src/client.ts#L1383)

The errors `@jsprismarine/client` throws.
