@@ -257,7 +257,7 @@ public function setClTrId(string $clTrId): self
257257 *
258258 * @return array
259259 *
260- * @throws ExceptionCallFailed
260+ * @throws CallFailedException
261261 */
262262 public function call (string $ object , string $ method , array $ params = []): array
263263 {
@@ -301,20 +301,20 @@ public function call(string $object, string $method, array $params = []): array
301301 }
302302
303303 if ($ response === false ) {
304- throw new ExceptionCallFailed ('Curl failed to request from: ' . $ this ->url . $ this ->api . '/ ' );
304+ throw new CallFailedException ('Curl failed to request from: ' . $ this ->url . $ this ->api . '/ ' );
305305 }
306306
307307 if ($ this ->isJson ()) {
308308 $ result = json_decode ($ response , true );
309309 if (!is_array ($ result )) {
310- throw new ExceptionCallFailed ('Failed to decode json response: ' . var_export ($ response , true ));
310+ throw new CallFailedException ('Failed to decode json response: ' . var_export ($ response , true ));
311311 }
312312 return $ result ;
313313 }
314314
315315 $ result = xmlrpc_decode ($ response , 'UTF-8 ' );
316316 if (!is_array ($ result )) {
317- throw new ExceptionCallFailed ('Failed to decode xmlrpc response: ' . var_export ($ response , true ));
317+ throw new CallFailedException ('Failed to decode xmlrpc response: ' . var_export ($ response , true ));
318318 }
319319 return $ result ;
320320 }
@@ -363,7 +363,7 @@ protected function getSecretCode(string $secret): string
363363 *
364364 * @return array
365365 *
366- * @throws ExceptionCallFailed
366+ * @throws CallFailedException
367367 */
368368 public function login (string $ username , string $ password , ?string $ sharedSecret = null ): array
369369 {
@@ -388,7 +388,7 @@ public function login(string $username, string $password, ?string $sharedSecret
388388 *
389389 * @return array
390390 *
391- * @throws ExceptionCallFailed
391+ * @throws CallFailedException
392392 */
393393 public function logout (): array
394394 {
0 commit comments