Commit 25a7ada 1 parent f58a38d commit 25a7ada Copy full SHA for 25a7ada
File tree 3 files changed +8
-8
lines changed
dl_api_commons/dl_api_commons
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,8 @@ class FlaskRCINotSet(Exception):
80
80
class RequestTimeoutError (DLBaseException ):
81
81
err_code = DLBaseException .err_code + ["REQUEST_TIMEOUT" ]
82
82
default_message = "Backend app request timeout exceeded"
83
+
84
+
85
+ class FailedDependencyException (DLBaseException ):
86
+ err_code = DLBaseException .err_code + ["FAILED_DEPENDENCY" ]
87
+ default_message = "Failed dependency"
Original file line number Diff line number Diff line change 16
16
from marshmallow import ValidationError as MValidationError
17
17
from marshmallow import fields
18
18
19
- from dl_api_commons . exc import RequestTimeoutError
19
+ from dl_api_commons import exc as api_commons_exc
20
20
from dl_api_lib import exc
21
21
from dl_constants .exc import (
22
22
DEFAULT_ERR_CODE_API_PREFIX ,
85
85
dl_query_processing .exc .GenericInvalidRequestError : status .BAD_REQUEST ,
86
86
dl_query_processing .exc .InvalidGroupByConfiguration : status .BAD_REQUEST ,
87
87
common_exc .WrongQueryParameterization : status .BAD_REQUEST ,
88
- RequestTimeoutError : status .FAILED_DEPENDENCY ,
88
+ api_commons_exc . RequestTimeoutError : status .FAILED_DEPENDENCY ,
89
89
exc .ConnectorIconNotFoundException : status .NOT_FOUND ,
90
- exc .FailedDependencyException : status .FAILED_DEPENDENCY ,
90
+ api_commons_exc .FailedDependencyException : status .FAILED_DEPENDENCY ,
91
91
}
92
92
93
93
Original file line number Diff line number Diff line change @@ -48,8 +48,3 @@ class DLValidationFatal(_DLValidationResult):
48
48
class ConnectorIconNotFoundException (DLBaseException ):
49
49
default_message = "Connector icon not found"
50
50
err_code = ["ICON_NOT_FOUND" ]
51
-
52
-
53
- class FailedDependencyException (DLBaseException ):
54
- err_code = DLBaseException .err_code + ["FAILED_DEPENDENCY" ]
55
- default_message = "Failed dependency"
You can’t perform that action at this time.
0 commit comments