Added error code about illegal type object.