BadFrameLengthException

class BadFrameLengthException(val declaredLength: Long) : RuntimeException

Thrown by PeerConnection.receiveLoop when a peer announces a frame longer than an addressable ByteArray (>Int.MAX_VALUE). Such a frame is malformed or hostile. It is distinct from ProtocolException so callers can log the offending length.

Constructors

Link copied to clipboard
constructor(declaredLength: Long)

Properties

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