Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
errorenumeration.php
1<?php
2
4
5/*
6 * Error code notation x(category1) xxx(category2) xxx(code category) xxxxx(code) - 2 000 403 00010
7 * # category1 (x):
8 * Check arguments in BaseAction - 1
9 * Action - 2
10 *
11 * # category2 (xxx):
12 * BaseAction - 018
13 * AddBasketItemAction - 019
14 * DeleteBasketItemAction - 020
15 * UpdateBasketItemAction - 021
16 * SaveOrderAction - 022
17 * GetBasketAction - 023
18 * UserConsentRequestAction - 024
19 * ChangeBasketItemAction - 025
20 * InitiatePayAction - 026
21 *
22 * # code category (xxx) - http status
23 *
24 * # code (xxxxx) - any value
25 * SaveOrderAction - check fields - 00000 - 09999
26 * SaveOrderAction - person type - 01000 - 01999
27 * SaveOrderAction - basket - 02000 - 02999
28 * SaveOrderAction - properties - 03000 - 03999
29 * SaveOrderAction - trading platform - 04000 - 04999
30 * SaveOrderAction - user - 05000 - 05999
31 * SaveOrderAction - user profile - 06000 - 06999
32 * SaveOrderAction - final - 07000 - 07999
33 * SaveOrderAction - save - 08000 - 08999
34 */
35
42{
43 // \Bitrix\Sale\Controller\Action\Entity\BaseAction
44 public const BASE_ACTION_UPPERCASE_KEY = 101840000001;
45 public const BASE_ACTION_ACCESS_DENIED = 201840300001;
46
47 // \Bitrix\Sale\Controller\Action\Entity\AddBasketItemAction
48 public const ADD_BASKET_ITEM_ACTION_SITE_ID_NOT_FOUND = 201940400001;
49 public const ADD_BASKET_ITEM_ACTION_FUSER_ID_NOT_FOUND = 201940400002;
50 public const ADD_BASKET_ITEM_ACTION_PRODUCT_NOT_FOUND = 201940400003;
51 public const ADD_BASKET_ITEM_ADD_PRODUCT_TO_BASKET = 201950010000;
52 public const ADD_BASKET_ITEM_SAVE_BASKET = 201950020000;
53
54 // \Bitrix\Sale\Controller\Action\Entity\DeleteBasketItemAction
56 public const DELETE_BASKET_ITEM_ACTION_ORDER_EXIST = 202050000001;
57 public const DELETE_BASKET_ITEM_ACTION_BASKET_LOAD = 202050000002;
58 public const DELETE_BASKET_ITEM_ACTION_SAVE_BASKET = 202050010000;
59
60 // \Bitrix\Sale\Controller\Action\Entity\UpdateBasketItemAction
62 public const UPDATE_BASKET_ITEM_ACTION_ORDER_EXIST = 202150000001;
63 public const UPDATE_BASKET_ITEM_ACTION_BASKET_LOAD = 202150000002;
64 public const UPDATE_BASKET_ITEM_ACTION_SET_FIELD = 202150010000;
65 public const UPDATE_BASKET_ITEM_ACTION_SAVE_BASKET = 202150020000;
66 public const UPDATE_BASKET_ITEM_ACTION_CHECK_QUANTITY = 202150030000;
67
68 // \Bitrix\Sale\Controller\Action\Entity\SaveOrderAction
69 public const SAVE_ORDER_ACTION_SITE_ID_NOT_FOUND = 202240400001;
70 public const SAVE_ORDER_ACTION_FUSER_ID_NOT_FOUND = 202240400002;
71 public const SAVE_ORDER_ACTION_PERSON_TYPE_ID_NOT_FOUND = 202240400003;
72 public const SAVE_ORDER_ACTION_SET_PERSON_TYPE_ID = 202250001000;
73 public const SAVE_ORDER_ACTION_SET_BASKET = 202250002000;
74 public const SAVE_ORDER_ACTION_SET_PROPERTIES = 202250003000;
75 public const SAVE_ORDER_ACTION_SET_TRADE_BINDINGS = 202250004000;
76 public const SAVE_ORDER_ACTION_SET_USER = 202250005000;
77 public const SAVE_ORDER_ACTION_SET_PROFILE = 202250006000;
78 public const SAVE_ORDER_ACTION_FINAL_ACTIONS = 202250007000;
79 public const SAVE_ORDER_ACTION_SAVE = 202250008000;
80
81 // \Bitrix\Sale\Controller\Action\Entity\GetBasketAction
82 public const GET_BASKET_ACTION_SITE_ID_NOT_FOUND = 202340400001;
83 public const GET_BASKET_ACTION_FUSER_ID_NOT_FOUND = 202340400002;
84
85 // \Bitrix\Sale\Controller\Action\Entity\UserConsentRequestAction
86 public const USER_CONSENT_REQUEST_ACTION_ID_NOT_FOUND = 202440400001;
87
88 // \Bitrix\Sale\Controller\Action\Entity\ChangeBasketItemAction
93 public const CHANGE_BASKET_ITEM_ACTION_BASKET_ITEM_LOAD = 202550000001;
95 public const CHANGE_BASKET_ITEM_ACTION_PRODUCT_LOAD = 202550000003;
96 public const CHANGE_BASKET_ITEM_ACTION_SET_FIELD = 202550000004;
97 public const CHANGE_BASKET_ITEM_ACTION_REFRESH_BASKET = 202550000005;
98 public const CHANGE_BASKET_ITEM_ACTION_SAVE_BASKET = 202550000006;
99
100 // \Bitrix\Sale\Controller\Action\Entity\InitiatePayAction
101 public const INITIATE_PAY_ACTION_PAYMENT_ID_NOT_FOUND = 202640400001;
103 public const INITIATE_PAY_ACTION_ACCESS_CODE_NOT_FOUND = 202640400003;
104 public const INITIATE_PAY_ACTION_PAYMENT_NOT_FOUND = 202640400004;
105 public const INITIATE_PAY_ACTION_ORDER_NOT_FOUND = 202640400005;
107 public const INITIATE_PAY_ACTION_COMMON_ERROR = 202650000007;
108 public const INITIATE_PAY_ACTION_ORDER_STATUS_ERROR = 202650000009;
109 public const INITIATE_PAY_ACTION_ORDER_ACCESS_ERROR = 202650000010;
112
113 // \Bitrix\Sale\Controller\Action\PaySystem\AddPaySystemAction
116}