arpakitlib 1.8.238__py3-none-any.whl → 1.8.240__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arpakitlib/_arpakit_project_template_v_5/project/api/api_exception.py +13 -13
- arpakitlib/raise_own_exception_if_exception.py +2 -0
- {arpakitlib-1.8.238.dist-info → arpakitlib-1.8.240.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.238.dist-info → arpakitlib-1.8.240.dist-info}/RECORD +7 -7
- {arpakitlib-1.8.238.dist-info → arpakitlib-1.8.240.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.238.dist-info → arpakitlib-1.8.240.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.238.dist-info → arpakitlib-1.8.240.dist-info}/entry_points.txt +0 -0
@@ -32,7 +32,7 @@ class APIException(fastapi.exceptions.HTTPException):
|
|
32
32
|
self.status_code = status_code
|
33
33
|
|
34
34
|
if error_common_so is None:
|
35
|
-
|
35
|
+
error_common_so = ErrorCommonSO(
|
36
36
|
has_error=True,
|
37
37
|
error_code=error_code,
|
38
38
|
error_specification_code=error_specification_code,
|
@@ -40,27 +40,27 @@ class APIException(fastapi.exceptions.HTTPException):
|
|
40
40
|
error_description_data=error_description_data,
|
41
41
|
error_data=error_data
|
42
42
|
)
|
43
|
+
self.error_common_so = error_common_so
|
43
44
|
else:
|
44
45
|
self.error_common_so = error_common_so
|
45
|
-
self.error_code = error_common_so.error_code
|
46
|
-
self.error_specification_code = error_common_so.error_specification_code
|
47
|
-
self.error_description = error_common_so.error_description
|
48
|
-
self.error_description_data = error_common_so.error_description_data
|
49
|
-
self.error_data = error_common_so.error_data
|
50
46
|
|
51
47
|
if kwargs_in_own_exception.get("raise_own_exception_if_exception_in_api_router") is True:
|
52
|
-
self.error_data["raise_own_exception_if_exception_in_api_router"] = True
|
53
|
-
|
54
|
-
|
48
|
+
self.error_common_so.error_data["raise_own_exception_if_exception_in_api_router"] = True
|
49
|
+
self.error_common_so.error_data["caught_exception_type"] = kwargs_in_own_exception.get(
|
50
|
+
"caught_exception_type"
|
51
|
+
)
|
52
|
+
self.error_common_so.error_data["caught_exception_str"] = kwargs_in_own_exception.get(
|
53
|
+
"caught_exception_str"
|
54
|
+
)
|
55
55
|
|
56
56
|
if kwargs_ is None:
|
57
57
|
kwargs_ = {}
|
58
58
|
if "create_story_log" not in kwargs_ and kwargs_create_story_log is not None:
|
59
59
|
kwargs_["create_story_log"] = kwargs_create_story_log
|
60
|
-
self.error_data["create_story_log"] = kwargs_create_story_log
|
60
|
+
self.error_common_so.error_data["create_story_log"] = kwargs_create_story_log
|
61
61
|
if "logging" not in kwargs_ and kwargs_logging_full_error is not None:
|
62
62
|
kwargs_["logging_full_error"] = kwargs_logging_full_error
|
63
|
-
self.error_data["logging_full_error"] = kwargs_logging_full_error
|
63
|
+
self.error_common_so.error_data["logging_full_error"] = kwargs_logging_full_error
|
64
64
|
self.kwargs_ = kwargs_
|
65
65
|
|
66
66
|
super().__init__(
|
@@ -69,7 +69,7 @@ class APIException(fastapi.exceptions.HTTPException):
|
|
69
69
|
)
|
70
70
|
|
71
71
|
def __str__(self) -> str:
|
72
|
-
return f"{self.status_code=}, {self.error_code=}, {self.error_specification_code=}"
|
72
|
+
return f"{self.status_code=}, {self.error_common_so.error_code=}, {self.error_common_so.error_specification_code=}"
|
73
73
|
|
74
74
|
def __repr__(self) -> str:
|
75
|
-
return f"{self.status_code=}, {self.error_code=}, {self.error_specification_code=}"
|
75
|
+
return f"{self.status_code=}, {self.error_common_so.error_code=}, {self.error_common_so.error_specification_code=}"
|
@@ -72,6 +72,7 @@ def raise_own_exception_if_exception(
|
|
72
72
|
if kwargs_in_own_exception is not None:
|
73
73
|
copied_kwargs_in_own_exception = kwargs_in_own_exception.copy()
|
74
74
|
copied_kwargs_in_own_exception["caught_exception"] = caught_exception
|
75
|
+
copied_kwargs_in_own_exception["caught_exception_type"] = str(type(caught_exception))
|
75
76
|
copied_kwargs_in_own_exception["caught_exception_str"] = str(caught_exception)
|
76
77
|
try:
|
77
78
|
_kwargs = {}
|
@@ -96,6 +97,7 @@ def raise_own_exception_if_exception(
|
|
96
97
|
if kwargs_in_own_exception is not None:
|
97
98
|
copied_kwargs_in_own_exception = kwargs_in_own_exception.copy()
|
98
99
|
copied_kwargs_in_own_exception["caught_exception"] = caught_exception
|
100
|
+
copied_kwargs_in_own_exception["caught_exception_type"] = str(type(caught_exception))
|
99
101
|
copied_kwargs_in_own_exception["caught_exception_str"] = str(caught_exception)
|
100
102
|
try:
|
101
103
|
_kwargs = {}
|
@@ -82,7 +82,7 @@ arpakitlib/_arpakit_project_template_v_5/project/additional_model/__init__.py,sh
|
|
82
82
|
arpakitlib/_arpakit_project_template_v_5/project/additional_model/common.py,sha256=BRz-B699ZY52DfUD6kmhpuThBWpPzpZpD0QXIjlkwC8,168
|
83
83
|
arpakitlib/_arpakit_project_template_v_5/project/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
84
84
|
arpakitlib/_arpakit_project_template_v_5/project/api/api_error_codes.py,sha256=LRTrqg-xulcEI9_-m1rcUZkaEpwA6zpLFYhQA8ZdXv4,1330
|
85
|
-
arpakitlib/_arpakit_project_template_v_5/project/api/api_exception.py,sha256=
|
85
|
+
arpakitlib/_arpakit_project_template_v_5/project/api/api_exception.py,sha256=xAUFdGfLkH4OWT6kIsvHqPN42J4MKaGbi-mFd2dqoKg,3226
|
86
86
|
arpakitlib/_arpakit_project_template_v_5/project/api/asgi.py,sha256=ES3YGwNxWUHVyD6e2ii6QkvTyB-vlVmr8_PhfVIXQ4Y,78
|
87
87
|
arpakitlib/_arpakit_project_template_v_5/project/api/authorize.py,sha256=IGQuAZF-NvQRcVv5qbEKXszVMTJJE3iJdtQHzMFqpSA,15438
|
88
88
|
arpakitlib/_arpakit_project_template_v_5/project/api/before_start_api.py,sha256=a7eiV8oaWk9qYzlNNnY8BYY8VlnQAZ0w8TwuC2u6v_c,1902
|
@@ -422,9 +422,9 @@ arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,40
|
|
422
422
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
423
423
|
arpakitlib/clone_pydantic_model_fields.py,sha256=xxLwtvJzDf8EWMvBE4psWIj8c-cyeCxLRX76oCY_4zk,1214
|
424
424
|
arpakitlib/pydantic_schema_from_sqlalchemy_model.py,sha256=_5Y79kQ4lLIOL6_afIFVwxY1EXzTMpi-veRR-WkPFOs,2879
|
425
|
-
arpakitlib/raise_own_exception_if_exception.py,sha256=
|
426
|
-
arpakitlib-1.8.
|
427
|
-
arpakitlib-1.8.
|
428
|
-
arpakitlib-1.8.
|
429
|
-
arpakitlib-1.8.
|
430
|
-
arpakitlib-1.8.
|
425
|
+
arpakitlib/raise_own_exception_if_exception.py,sha256=A6TuNSBk1pHaQ_qxnUmE2LgsNGA1IGqX26b1_HEA4Nc,5978
|
426
|
+
arpakitlib-1.8.240.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
427
|
+
arpakitlib-1.8.240.dist-info/METADATA,sha256=NCPpuCaFFTzOWrpvUv33pTBbLBrPr8wpe6y3bPtOQJo,3741
|
428
|
+
arpakitlib-1.8.240.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
429
|
+
arpakitlib-1.8.240.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
430
|
+
arpakitlib-1.8.240.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|