DatagramTooLarge
struct DatagramTooLargeRaised when a UDP datagram exceeds the maximum allowed payload size.
Fields:
size: The datagram size in bytes that was rejected.
max_size: The platform maximum (65507 bytes).
Example:
raise DatagramTooLarge(70000)
Implements Copyable, Movable, Writable
- Fields
size: Intmax_size: Int
__init__
def __init__(out self, size: Int, max_size: Int = Int(65507)) Initialise a DatagramTooLarge error.
- Args
size: The requested datagram size.max_size: The allowed maximum. Defaults to65507.
write_to
def write_to[W: Writer](self, mut writer: W) Write the error description to writer.
- Args
writer: Destination writer.