Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Error.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Api\Response
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
7
class
Error
extends
\Bitrix\Bizproc\Error
8
{
9
public
const
UNAUTHORIZED
=
'UNAUTHORIZED'
;
10
public
const
WORKFLOW_NOT_FOUND
=
'WORKFLOW_NOT_FOUND'
;
11
12
public
static
function
getCodes
(): array
13
{
14
return
array_merge(
15
parent::getCodes(),
16
[
17
static::UNAUTHORIZED,
18
static::WORKFLOW_NOT_FOUND,
19
],
20
);
21
}
22
23
public
static
function
getLocalizationIdMap
(): array
24
{
25
Loc::loadMessages
(__FILE__);
26
$prefix =
'BIZPROC_LIB_SERVICES_ERROR_'
;
27
28
return
array_merge(
29
parent::getLocalizationIdMap(),
30
[
31
static::UNAUTHORIZED => $prefix . static::UNAUTHORIZED,
32
static::WORKFLOW_NOT_FOUND => $prefix . static::WORKFLOW_NOT_FOUND,
33
],
34
);
35
}
36
}
Bitrix\Bizproc\Api\Response\Error
Definition
Error.php:8
Bitrix\Bizproc\Api\Response\Error\getLocalizationIdMap
static getLocalizationIdMap()
Definition
Error.php:23
Bitrix\Bizproc\Api\Response\Error\getCodes
static getCodes()
Definition
Error.php:12
Bitrix\Bizproc\Api\Response\Error\WORKFLOW_NOT_FOUND
const WORKFLOW_NOT_FOUND
Definition
Error.php:10
Bitrix\Bizproc\Api\Response\Error\UNAUTHORIZED
const UNAUTHORIZED
Definition
Error.php:9
Bitrix\Bizproc\Error
Definition
error.php:8
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Bizproc\Api\Response
Definition
Error.php:3
modules
bizproc
lib
Api
Response
Error.php
Создано системой
1.10.0