Throw an exception when invalid Receipts are created.