void public \Bitrix\Main\ErrorCollection::setError( \Bitrix\Main\Error $error, $offset = null );
Non-static method adds an error into collection.