public BonCodeAJP13Packet(byte[] Buffer) { if (Buffer.Length >= BonCodeAJP13Consts.MIN_BONCODEAJP13_PACKET_LENGTH && Buffer.Length <= BonCodeAJP13Consts.MAX_BONCODEAJP13_USERDATA_LENGTH) { } else { // throw an exeption here ... stating the error !! throw new Exception("Invalid BonCodeAJP13 Packet recieved. Wrong byte length."); } }