Documentation

SqlQueryException Constructor

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

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

Parameters

ParameterDescriptionVersion
$messageException message
$databaseMessageDatabase message.
$querySQL query text.
$previous Previous exception. Used to build exception chain.

Examples



© «Bitrix24», 2001-2024
Up