Documentation

LogicException constructor

 public
\Bitrix\Security\LogicException::__construct(
 string $message = '',
 string $locMessageKey = '',
 integer $code,
 string $file = '',
 integer $line,
 \Exception $previous = null
);

Non-static method creates a new exception.

Parameters

ParameterDescriptionVersion
$messageMessage sent
$locMessageKeyMessage localization key. Useful for printing message directly to user.
$codeException code.
$fileCreates exception for this file name.
$line Creates exception for this file string name.
$previousPrevious exception. Used for exception sequencing.

Example



© «Bitrix24», 2001-2024