ReliableMessageTooLargeException

class ReliableMessageTooLargeException(val sizeBytes: Int, val capBytes: Int) : ReliableSendFailure(source)

A reliable message exceeded the configured cap. Never thrown; only ever the payload of a Result.failure from UdpChannel.send on a reliable channel. 2.0 does not fragment (docs/webtools-udp-protocol.md): split the message yourself, or raise reliableMaxMessageBytes up to UdpChannel.MAX_RELIABLE_MESSAGE_BYTES at the consumer's own IP-fragmentation risk. Unlike ReliableWindowFullException, this keeps its stack trace - it signals a programming or configuration mistake, where the trace is the diagnostic.

Stable Core. Full semver guarantee — breaking changes only in a major.

Constructors

Link copied to clipboard
constructor(sizeBytes: Int, capBytes: Int)

Properties

Link copied to clipboard

the configured cap that sizeBytes exceeded, in bytes

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

the size of the rejected message, in bytes