Server IP : 85.193.89.191 / Your IP : 3.133.146.158 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/modules/security/lib/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage security * @copyright 2001-2013 Bitrix */ namespace Bitrix\Security; use Bitrix\Main; use Bitrix\Main\Localization\Loc; /** * Class LogicException * @since 14.0.6 * @package Bitrix\Security */ class LogicException extends Main\SystemException { protected $locMessage = null; /** * Creates new logic exception object. * * @param string $message The Exception message to throw. * @param string $locMessageKey The Exception message localization key. Helpful for output message directly to user. * @param int $code The Exception code. * @param string $file The filename where the exception is thrown. * @param int $line The line number where the exception is thrown. * @param \Exception $previous The previous exception used for the exception chaining. */ public function __construct($message = '', $locMessageKey = '', $code = 0, $file = '', $line = 0, \Exception $previous = null) { $this->locMessage = $locMessageKey; parent::__construct($message, $code, $file, $line, $previous); } /** * Returns localized message * * @return string */ public function getLocMessage() { if (!$this->locMessage) return ''; return Loc::getMessage($this->locMessage); } }