I would add the length received to the exception message since it might help diagnose issues.