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