Documentation

Exception constructor

 public
\Bitrix\Main\DB\Exception::__construct(
 string $message = "",
 string $databaseMessage = "",
 \Exception $previous = null
);

This non-static method is called when creating class instance. This method allows modifying this class when creating an object. Error code is 400.

Parameters

ParameterDescriptionVersion
$messageException message
$databaseMessageDatabase message.
$previousPrevious exception. It is used to build exception chain.

Examples



© «Bitrix24», 2001-2024
Up