Bitrix API

Exception extends SystemException

Class Exception is used for all exceptions thrown in database.

Tags
see
Exception::__construct

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