Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
exception.php
1<?
3
6
7Loc::loadMessages(__FILE__);
8
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}
static loadMessages($file)
Definition loc.php:64
__construct($message='', array $parameters=array())
Definition exception.php:13