File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 77from ..exceptions import AssertionError
88from ..exceptions import AuthError
99from ..exceptions import BadDataError
10+ from ..exceptions import CancelledError
1011from ..exceptions import CustomError
1112from ..exceptions import ForbiddenError
1213from ..exceptions import InternalError
@@ -56,6 +57,7 @@ class Err(enum.IntEnum):
5657 """ThingsDB error codes."""
5758
5859 # ThingsDB build-in errors
60+ EX_CANCELLED_ERROR = - 64
5961 EX_OPERATION_ERROR = - 63
6062 EX_NUM_ARGUMENTS = - 62
6163 EX_TYPE_ERROR = - 61
@@ -81,6 +83,7 @@ class Err(enum.IntEnum):
8183
8284
8385_ERRMAP = {
86+ Err .EX_CANCELLED_ERROR : CancelledError ,
8487 Err .EX_OPERATION_ERROR : OperationError ,
8588 Err .EX_NUM_ARGUMENTS : NumArgumentsError ,
8689 Err .EX_TYPE_ERROR : TypeError ,
You can’t perform that action at this time.
0 commit comments