Created exceptions for protocol errors in packing messages