Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
logicexception.php
1<?php
9namespace Bitrix\Security;
10
11
12use Bitrix\Main;
14
22{
23 protected $locMessage = null;
24
35 public function __construct($message = '', $locMessageKey = '', $code = 0, $file = '', $line = 0, \Exception $previous = null)
36 {
37 $this->locMessage = $locMessageKey;
38 parent::__construct($message, $code, $file, $line, $previous);
39 }
40
46 public function getLocMessage()
47 {
48 if (!$this->locMessage)
49 return '';
50
51 return Loc::getMessage($this->locMessage);
52 }
53}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29
__construct($message='', $locMessageKey='', $code=0, $file='', $line=0, \Exception $previous=null)