Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
exception.php
1
<?
2
namespace
Bitrix\Sale\Location
;
3
4
use
Bitrix\Main\SystemException
;
5
use
Bitrix\Main\Localization\Loc
;
6
7
Loc::loadMessages
(__FILE__);
8
9
class
Exception
extends
SystemException
10
{
11
protected
$info
= array();
12
13
public
function
__construct
($message =
''
, array $parameters = array())
14
{
15
if
(isset($parameters[
'INFO'
]))
16
{
17
$this->info = $parameters[
'INFO'
];
18
}
19
20
if
($message ===
false
)
21
{
22
$message = $this->
getDefaultMessage
();
23
}
24
25
if
(!isset($parameters[
'FILE'
]))
26
{
27
$parameters[
'FILE'
] =
''
;
28
}
29
$parameters[
'LINE'
] = intval($parameters[
'LINE'
]);
30
$parameters[
'CODE'
] = intval($parameters[
'CODE'
]);
31
if
(!isset($parameters[
'PREVIOUS_EXCEPTION'
]))
32
{
33
$parameters[
'PREVIOUS_EXCEPTION'
] =
null
;
34
}
35
36
parent::__construct($message, $parameters[
'CODE'
], $parameters[
'FILE'
], $parameters[
'LINE'
], $parameters[
'PREVIOUS_EXCEPTION'
]);
37
}
38
39
public
function
getAdditionalInfo
()
40
{
41
return
$this->info;
42
}
43
44
public
function
getDefaultMessage
()
45
{
46
return
''
;
47
}
48
}
Bitrix\Main\DB\Exception
Definition
exception.php:11
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\SystemException
Definition
exception.php:8
Bitrix\Sale\Location\Exception\getAdditionalInfo
getAdditionalInfo()
Definition
exception.php:39
Bitrix\Sale\Location\Exception\getDefaultMessage
getDefaultMessage()
Definition
exception.php:44
Bitrix\Sale\Location\Exception\__construct
__construct($message='', array $parameters=array())
Definition
exception.php:13
Bitrix\Sale\Location\Exception\$info
$info
Definition
exception.php:11
Bitrix\Sale\Location
modules
sale
lib
location
exception.php
Создано системой
1.10.0