Bitrix API

SqlException extends Exception

Exception is thrown when database returns an error.

Table of Contents

Methods

__construct()  : mixed
getDatabaseMessage()  : string
Returns database specific message provided to the constructor.

Methods

__construct()

public __construct([string $message = "" ][, string $databaseMessage = "" ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ""

Application message.

$databaseMessage : string = ""

Database reason.

$previous : Throwable|null = null

The previous exception used for the exception chaining.

getDatabaseMessage()

Returns database specific message provided to the constructor.

public getDatabaseMessage() : string
Return values
string

        
On this page

Search results