403Webshell
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/cvetdv.ru/bitrix/modules/security/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/security/lib/logicexception.php
<?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);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit