public \Bitrix\Main\Entity\EventResult::setErrors( array $errors );
This non-static method sets array of errors and updates event type ERROR.