Your IP : 3.16.67.57


Current Path : /home/bitrix/ext_www/xn--80atde5a3i.com/bitrix/modules/pull/lib/
Upload File :
Current File : /home/bitrix/ext_www/xn--80atde5a3i.com/bitrix/modules/pull/lib/error.php

<?php
namespace Bitrix\Pull;

class Error
{
	public $method = '';
	public $code = '';
	public $msg = '';
	public $params = Array();
	public $error = false;

	public function __construct($method, $code, $msg, $params = Array())
	{
		if ($method != null)
		{
			$this->method = $method;
			$this->code = $code;

			if(is_array($msg))
				$this->msg = implode("; ", $msg);
			else
				$this->msg = $msg;

			$this->params = $params;

			$this->error = true;
		}
	}
}