@@ -302,6 +302,9 @@ public function generateUrl($urlParams = array(), $customAction = null)
302302 *
303303 * @uses HttpRequestJson::get() to send the HTTP request
304304 *
305+ * @throws ApiException if the response has an error specified
306+ * @throws CurlException if response received with unexpected HTTP code.
307+ *
305308 * @return array
306309 */
307310 public function get ($ urlParams = array (), $ url = null , $ dataKey = null )
@@ -321,6 +324,10 @@ public function get($urlParams = array(), $url = null, $dataKey = null)
321324 *
322325 * @param array $urlParams Check Shopify API reference of the specific resource for the list of URL parameters
323326 *
327+ * @throws SdkException
328+ * @throws ApiException if the response has an error specified
329+ * @throws CurlException if response received with unexpected HTTP code.
330+ *
324331 * @return integer
325332 */
326333 public function count ($ urlParams = array ())
@@ -340,6 +347,8 @@ public function count($urlParams = array())
340347 * @param mixed $query
341348 *
342349 * @throws SdkException if search is not enabled for the resouce
350+ * @throws ApiException if the response has an error specified
351+ * @throws CurlException if response received with unexpected HTTP code.
343352 *
344353 * @return array
345354 */
@@ -365,6 +374,9 @@ public function search($query)
365374 *
366375 * @uses HttpRequestJson::post() to send the HTTP request
367376 *
377+ * @throws ApiException if the response has an error specified
378+ * @throws CurlException if response received with unexpected HTTP code.
379+ *
368380 * @return array
369381 */
370382 public function post ($ dataArray , $ url = null , $ wrapData = true )
@@ -387,6 +399,9 @@ public function post($dataArray, $url = null, $wrapData = true)
387399 *
388400 * @uses HttpRequestJson::put() to send the HTTP request
389401 *
402+ * @throws ApiException if the response has an error specified
403+ * @throws CurlException if response received with unexpected HTTP code.
404+ *
390405 * @return array
391406 */
392407 public function put ($ dataArray , $ url = null , $ wrapData = true )
@@ -409,6 +424,9 @@ public function put($dataArray, $url = null, $wrapData = true)
409424 *
410425 * @uses HttpRequestJson::delete() to send the HTTP request
411426 *
427+ * @throws ApiException if the response has an error specified
428+ * @throws CurlException if response received with unexpected HTTP code.
429+ *
412430 * @return array an empty array will be returned if the request is successfully completed
413431 */
414432 public function delete ($ urlParams = array (), $ url = null )
0 commit comments