Работа с ошибками
When something went wrong, an exception always can be caught
\TasksException
Example:
$task = \CTaskItem::getInstance($this->entityId, $authorId); try { \CTaskCommentItem::add($task, $fields); } catch(\TasksException $e) { // log it }
© «Bitrix24», 2001-2024
Up