Handle invalid unit and size errors. [1682]

This commit adds two new exceptions; “AddeJythonInvalidUnitError” and
“AddeJythonInvalidPortionError”.