Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
error.php
1<?php
2namespace Bitrix\Pull;
3
4class Error
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())
Definition error.php:12