Documentation

getCode

integer|string public
$error = new \Bitrix\Lists\Internals\Error\Error($message, $code);
$error->getCode();

Non-static method returns error code.

No parameters

Example

$errorCollection->add(array(new \Bitrix\Lists\Internals\Error\Error('Text error', 'ERROR_LISTS')));


© «Bitrix24», 2001-2024