Added handling for SVC_PARAM error
This commit is contained in:
parent
c70982755d
commit
956c4c30ea
@ -26,6 +26,7 @@ from ..errors import (
|
|||||||
SvcNoResultError,
|
SvcNoResultError,
|
||||||
SvcProductError,
|
SvcProductError,
|
||||||
SvcSearchError,
|
SvcSearchError,
|
||||||
|
SvcParamError,
|
||||||
UnknownError,
|
UnknownError,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -86,6 +87,9 @@ def find_exception(data: dict):
|
|||||||
elif data["errorCode"] == "SVC_CTX":
|
elif data["errorCode"] == "SVC_CTX":
|
||||||
raise SvcContextError()
|
raise SvcContextError()
|
||||||
|
|
||||||
|
elif data["errorCode"] == "SVC_PARAM":
|
||||||
|
raise SvcParamError(errorCode=data["errorCode"], errorText=data["errorText"])
|
||||||
|
|
||||||
elif data["errorCode"] == "SVC_NO_RESULT":
|
elif data["errorCode"] == "SVC_NO_RESULT":
|
||||||
raise SvcNoResultError()
|
raise SvcNoResultError()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user