Added error code about illegal type object.
Documentation file.
Merge branch 'develop' into issue/1944