Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
exception.php
1<?
3
5
6Loc::loadMessages(__FILE__);
7
9{
10 public function getDefaultMessage()
11 {
12 return Loc::getMessage('SALE_TREE_ENTITY_EXCEPTION');
13 }
14
15 protected function fillMessageAdditions()
16 {
17 $message = '';
18
19 $aInfo = $this->getAdditionalInfo();
20
21 if(isset($aInfo['ID']))
22 {
23 $message .= ' (ID = '.intval($aInfo['ID']).')';
24 }
25
26 if(isset($aInfo['CODE']))
27 {
28 $message .= ' (CODE = '.intval($aInfo['CODE']).')';
29 }
30
31 if(isset($aInfo['RIGHT_MARGIN']))
32 {
33 $message .= ' (RIGHT_MARGIN = '.intval($aInfo['RIGHT_MARGIN']).')';
34 }
35
36 if(isset($aInfo['LEFT_MARGIN']))
37 {
38 $message .= ' (LEFT_MARGIN = '.intval($aInfo['LEFT_MARGIN']).')';
39 }
40
41 return $message;
42 }
43}
44
46{
47 public function getDefaultMessage()
48 {
49 return Loc::getMessage('SALE_TREE_ENTITY_NODE_NOT_FOUND_EXCEPTION').static::fillMessageAdditions();
50 }
51}
52
54{
55 public function getDefaultMessage()
56 {
57 return 'Incorrect LEFT_MARGIN or RIGHT_MARGIN (wrong data given or tree structure integrity seems to be compromised)'.static::fillMessageAdditions();
58 }
59}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29