Closed TwinMist closed 5 years ago
That's all up to you. You could either not catch the Exception within the function and allow the caller to catch it. The alternative would be to catch the Exception within the function and return FALSE
or some other value to indicate an error.
Hi trying to create a function this works function UserGetListInGroupRequest($ServiceProviderId,$GroupId) { global $ocip; $request = (new UserGetListInGroupRequest()) ->setServiceProviderId($ServiceProviderId) ->setGroupId($GroupId); $response = $ocip->call($request);
} but how would you code it for catch (ErrorResponseException ?
thanks