feature: add 0 as error_code for bos errors and X19 errors to make them consistent with the other types of errors.
This commit is contained in:
@@ -24,6 +24,7 @@ class X19Error:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
error_message: str
|
error_message: str
|
||||||
|
error_code: int = 0
|
||||||
|
|
||||||
def asdict(self):
|
def asdict(self):
|
||||||
return asdict(self)
|
return asdict(self)
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class BraiinsOSError:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
error_message: str
|
error_message: str
|
||||||
|
error_code: int = 0
|
||||||
|
|
||||||
def asdict(self):
|
def asdict(self):
|
||||||
return asdict(self)
|
return asdict(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user