public
\Bitrix\Lists\Internals\Error\Error::__construct(
string $message,
integer|string $code
);
Non-static method creates a new error.
Parameters
Parameter | Description | Version |
$message | Error message. | |
$code | Error code. | |
Example
$error = new \Bitrix\Lists\Internals\Error\Error($message, $code);