internal 0.1.32__py3-none-any.whl → 0.1.33__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

@@ -0,0 +1,20 @@
1
+ from fastapi import status
2
+ from .base_exception import InternalBaseException
3
+
4
+
5
+ class BadGatewayException(InternalBaseException):
6
+ code = "error_bad_gateway"
7
+ message = "Bad gateway"
8
+
9
+ def __init__(self, message: str = None, **kwargs):
10
+ _message = message or self.message
11
+ super().__init__(status.HTTP_502_BAD_GATEWAY, self.code, _message, **kwargs)
12
+
13
+
14
+ class GatewayTimeoutException(InternalBaseException):
15
+ code = "error_gateway_timeout"
16
+ message = "Gateway timeout"
17
+
18
+ def __init__(self, message: str = None, **kwargs):
19
+ _message = message or self.message
20
+ super().__init__(status.HTTP_504_GATEWAY_TIMEOUT, self.code, _message, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.32
3
+ Version: 0.1.33
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -5,6 +5,7 @@ internal/const.py,sha256=U1S9r7bjtHgad2oYQoHO19s8D4V0WDUG-L-haV4UaIw,1025
5
5
  internal/database.py,sha256=MyRLlb0W8FB8Odq0UQpN3R7OD3yUPWgJXsZRuDWQC_w,1010
6
6
  internal/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  internal/exception/base_exception.py,sha256=U0ZXx1FOXydAnQQImznkeAdsKVC_YaukPWvJdWqEBfg,363
8
+ internal/exception/internal_exception.py,sha256=Q1h8GmaiSCNd050y28TVhrZXp-HWGaJqKZ_duW8pxrk,683
8
9
  internal/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
11
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
@@ -18,6 +19,6 @@ internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
19
  internal/model/base_model.py,sha256=gNbixWuGiK8Tbe78wHuLneZ8p3fwMwQRKurBDrGoh6s,1874
19
20
  internal/model/operate.py,sha256=3mOs7eQ2CPnCB6i6UQBOp8VdTPmVnayaUFqUEDOKoTY,1493
20
21
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
21
- internal-0.1.32.dist-info/METADATA,sha256=MCSJvXWR9uXi21sjWbvAbPu0pQJjZZ-Fu7nc4Be2phk,625
22
- internal-0.1.32.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
23
- internal-0.1.32.dist-info/RECORD,,
22
+ internal-0.1.33.dist-info/METADATA,sha256=zYWc-qGixejnD_atwf5x73hkGL1ISTxx4Pk_50LYHlg,625
23
+ internal-0.1.33.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
+ internal-0.1.33.dist-info/RECORD,,