Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
basicerror.php
1<?php
2namespace Bitrix\Im;
3
5{
6 public $method = '';
7 public $code = '';
8 public $msg = '';
9 public $params = Array();
10 public $error = false;
11
12 public function __construct($method, $code, $msg, $params = Array())
13 {
14 if ($method != null)
15 {
16 $this->method = $method;
17 $this->code = $code;
18
19 if(is_array($msg))
20 $this->msg = implode("; ", $msg);
21 else
22 $this->msg = $msg;
23
24 $this->params = $params;
25
26 $this->error = true;
27 }
28 }
29}
__construct($method, $code, $msg, $params=Array())