Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
executeexception.php
1
<?php
2
namespace
Bitrix\Sale\TradingPlatform\Vk
;
3
4
use
Bitrix\Main\SystemException
;
5
use
Bitrix\Main\Localization\Loc
;
6
7
Loc::loadMessages
(__FILE__);
8
15
class
ExecuteException
extends
SystemException
16
{
17
protected
$errCode
;
18
protected
$method
;
19
protected
$needLink
=
false
;
20
const
API_DESC_PAGE
=
'https://new.vk.com/dev/errors'
;
21
22
23
public
function
__construct
($message =
""
,
$errCode
=
""
,
$method
=
""
, \
Exception
$previous = NULL)
24
{
25
parent::__construct($message, 0,
''
, 0, $previous);
26
$this->errCode =
$errCode
;
27
$this->method =
$method
;
28
}
29
35
public
function
getFullMessage
()
36
{
37
$newMessage =
Loc::getMessage
(
"VK_ERRORS_INTRO"
) .
"\n"
;
38
39
if
($this->errCode)
40
$newMessage .=
Loc::getMessage
(
"VK_ERROR_CODE"
) .
": \""
. $this->errCode .
"\". "
;
41
42
$newMessage .=
Loc::getMessage
(
"VK_ERROR_TEXT"
) .
": \""
. $this->message .
"\"."
;
43
44
if
($this->method)
45
$newMessage .=
" "
.
Loc::getMessage
(
"VK_ERROR_IN_METHOD"
) .
": "
. $this->method .
"."
;
46
47
// only for vk api errors
48
if
($this->errCode)
49
$newMessage .=
"\n"
.
Loc::getMessage
(
"VK_ERROR_ERRORS_INFO"
) .
self::API_DESC_PAGE
;
50
51
return
$newMessage;
52
}
53
}
Bitrix\Main\DB\Exception
Definition
exception.php:11
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\SystemException
Definition
exception.php:8
Bitrix\Sale\TradingPlatform\Vk\ExecuteException
Definition
executeexception.php:16
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\$method
$method
Definition
executeexception.php:18
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\__construct
__construct($message="", $errCode="", $method="", \Exception $previous=NULL)
Definition
executeexception.php:23
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\getFullMessage
getFullMessage()
Definition
executeexception.php:35
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\$needLink
$needLink
Definition
executeexception.php:19
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\API_DESC_PAGE
const API_DESC_PAGE
Definition
executeexception.php:20
Bitrix\Sale\TradingPlatform\Vk\ExecuteException\$errCode
$errCode
Definition
executeexception.php:17
Bitrix\Sale\TradingPlatform\Vk
Definition
agent.php:3
modules
sale
lib
tradingplatform
vk
executeexception.php
Создано системой
1.10.0