Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/db/ |
Upload File : |
<?php namespace Bitrix\Main\DB; /** * Class Exception is used for all exceptions thrown in database. * * @see \Bitrix\Main\DB\Exception::__construct * @package Bitrix\Main\DB */ class Exception extends \Bitrix\Main\SystemException { /** @var string */ protected $databaseMessage; /** * @param string $message Application message. * @param string $databaseMessage Database reason. * @param \Throwable | null $previous The previous exception used for the exception chaining. */ public function __construct($message = "", $databaseMessage = "", \Throwable $previous = null) { if (($message != "") && ($databaseMessage != "")) $message .= ": ".$databaseMessage; elseif (($message == "") && ($databaseMessage != "")) $message = $databaseMessage; $this->databaseMessage = $databaseMessage; parent::__construct($message, 400, '', 0, $previous); } /** * Returns database specific message provided to the constructor. * * @return string */ public function getDatabaseMessage() { return $this->databaseMessage; } }