Documentation

Error Constructor

 public
\Bitrix\Main\Error::__construct(
 string $message,
 integer|string $code
);

This non-static method is called when creating a class instance and allows to modify it when creating an object.

Parameters

ParameterDescriptionVersion
$messageError message.
$codeError code.

Example



© «Bitrix24», 2001-2022
Up