Documentation

setError

void public
\Bitrix\Main\ErrorCollection::setError(
 \Bitrix\Main\Error $error,
  $offset = null
);

Non-static method adds an error into collection.

Parameters

ParameterDescriptionVersion
$errorError object
$offsetOffset in archive.

Example



© «Bitrix24», 2001-2024
Up