Call this when you've done packing or unpacking + want to generate error - prevent to send invalid data etc.