All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.tctm.PacketTooLongException Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.tctm;

/**
 * Exception thrown when a packet is longer than a defined limit
 * @author nm
 *
 */
public class PacketTooLongException extends TcTmException {
    final int maxSize;
    final int actualSize;
    public PacketTooLongException(int maxSize, int actualSize) {
        this.maxSize = maxSize;
        this.actualSize = actualSize;
    }
    
    public String toString() {
        return "PacketTooLongException: packetLength (" + actualSize + ") > maxPacketLength(" + maxSize + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy