public \Bitrix\Main\Result::addError( \Bitrix\Main\Error $error );
This non-static method adds an error.