orionis 0.490.0__py3-none-any.whl → 0.491.0__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.
- orionis/failure/catch.py +13 -0
- orionis/metadata/framework.py +1 -1
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/METADATA +1 -1
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/RECORD +8 -8
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/WHEEL +0 -0
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/top_level.txt +0 -0
- {orionis-0.490.0.dist-info → orionis-0.491.0.dist-info}/zip-safe +0 -0
orionis/failure/catch.py
CHANGED
|
@@ -7,6 +7,11 @@ from orionis.services.log.contracts.log_service import ILogger
|
|
|
7
7
|
|
|
8
8
|
class Catch(ICatch):
|
|
9
9
|
|
|
10
|
+
# Exceptions that should not be caught by the handler
|
|
11
|
+
dont_cathc: List[type[BaseException]] = [
|
|
12
|
+
#...
|
|
13
|
+
]
|
|
14
|
+
|
|
10
15
|
def __init__(self, app: IApplication) -> None:
|
|
11
16
|
"""
|
|
12
17
|
Initializes the Catch handler with application services for console output and logging.
|
|
@@ -101,6 +106,10 @@ class Catch(ICatch):
|
|
|
101
106
|
# Convert the exception into a structured Throwable object
|
|
102
107
|
throwable = self.destructureException(exception)
|
|
103
108
|
|
|
109
|
+
# If the exception type is in the list of exceptions passed to the handler
|
|
110
|
+
if hasattr(self, 'dont_cathc') and throwable.classtype in self.dont_cathc:
|
|
111
|
+
return
|
|
112
|
+
|
|
104
113
|
# Log the exception details
|
|
105
114
|
self.logger.error(f"[{throwable.classtype.__name__}] {throwable.message}")
|
|
106
115
|
|
|
@@ -141,6 +150,10 @@ class Catch(ICatch):
|
|
|
141
150
|
# Convert the exception into a structured Throwable object
|
|
142
151
|
throwable = self.destructureException(exception)
|
|
143
152
|
|
|
153
|
+
# If the exception type is in the list of exceptions passed to the handler
|
|
154
|
+
if hasattr(self, 'dont_cathc') and throwable.classtype in self.dont_cathc:
|
|
155
|
+
return
|
|
156
|
+
|
|
144
157
|
# Log the CLI error message with arguments
|
|
145
158
|
self.logger.error(f"CLI Error: {throwable.message} (Args: {args})")
|
|
146
159
|
|
orionis/metadata/framework.py
CHANGED
|
@@ -93,7 +93,7 @@ orionis/container/validators/is_subclass.py,sha256=4sBaGLoRs8nUhuWjlP0VJqyTwVHYq
|
|
|
93
93
|
orionis/container/validators/is_valid_alias.py,sha256=4uAYcq8xov7jZbXnpKpjNkxcZtlTNnL5RRctVPMwJes,1424
|
|
94
94
|
orionis/container/validators/lifetime.py,sha256=IQ43fDNrxYHMlZH2zlYDJnlkLO_eS4U7Fs3UJgQBidI,1844
|
|
95
95
|
orionis/failure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
|
-
orionis/failure/catch.py,sha256=
|
|
96
|
+
orionis/failure/catch.py,sha256=6Ijp7GDTJ3UfTFa42E_yMt7PAYnXSG8zHRkE-IBRxHU,6133
|
|
97
97
|
orionis/failure/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
98
|
orionis/failure/contracts/catch.py,sha256=sdtjhq6ToXrtdKR0Bw9YYUqofvm-FGULPnz4dZVddWQ,2844
|
|
99
99
|
orionis/failure/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -214,7 +214,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
214
214
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
215
215
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
216
216
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
217
|
-
orionis/metadata/framework.py,sha256=
|
|
217
|
+
orionis/metadata/framework.py,sha256=rCoxO1r6iSv4Lk7uu6U-dbJAeoRKYexbjzdNLfDuQkI,4109
|
|
218
218
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
219
219
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
220
220
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -388,7 +388,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
388
388
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
389
389
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
390
390
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
391
|
-
orionis-0.
|
|
391
|
+
orionis-0.491.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
392
392
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
393
393
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
394
394
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -535,8 +535,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
535
535
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
536
536
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
537
537
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
538
|
-
orionis-0.
|
|
539
|
-
orionis-0.
|
|
540
|
-
orionis-0.
|
|
541
|
-
orionis-0.
|
|
542
|
-
orionis-0.
|
|
538
|
+
orionis-0.491.0.dist-info/METADATA,sha256=O0b5oamkGPSCavJ7hdyzAtEdHQh4oyM0gxbMKIyzTSI,4801
|
|
539
|
+
orionis-0.491.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
540
|
+
orionis-0.491.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
541
|
+
orionis-0.491.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
542
|
+
orionis-0.491.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|