Create Exception classes for Product and Price services
This PR creates concrete exception classes for SoapProductService
and SoapPriceService
and wraps the SOAP calls in try/catch
blocks. We now catch and rethrow UnsupportedCurrencyException
s for the Product and Price services, and for the Product service, we catch generic exceptions and rethrow them as either a ProductServiceCreateException
or ProductServiceUpdateException
. This should hopefully allow us to be more intelligent about our exception handling when syncing a product with CBS, because we currently only listen for generic Exceptions and can't easily react to issues that arise from one type of call or the other.
Please review: @weizhong-wang @lloyd-carter @KJOYNER
Merge request reports
Activity
Build finished. Tests PASSED. Build results available at: https://ia-builds.doit.wisc.edu:8443/job/cbs-techstore-client-php-master-pull-requests/126/
mentioned in commit d8802a13