diff --git a/src/pyrmv/utility/find_exception.py b/src/pyrmv/utility/find_exception.py index 8917bd4..23e4247 100644 --- a/src/pyrmv/utility/find_exception.py +++ b/src/pyrmv/utility/find_exception.py @@ -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()