1
0

Release 0.7.0

Beta Release 0.7.0 including:

- Bug fixes
- Updated model/function names
- Updated models to reflect changes in APIs
This commit is contained in:
Patrick Powers
2025-03-20 13:18:55 -05:00
committed by GitHub
parent bba7e8b3d0
commit 504c367386
707 changed files with 22368 additions and 9237 deletions

View File

@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace PaypalServerSdkLib\Exceptions;
use CoreInterfaces\Sdk\ExceptionInterface;
use PaypalServerSdkLib\ApiHelper;
use PaypalServerSdkLib\Http\HttpResponse;
use PaypalServerSdkLib\Http\HttpRequest;
@@ -68,4 +69,20 @@ class ApiException extends \Exception implements ExceptionInterface
{
return !\is_null($this->response);
}
/**
* Converts the ApiException object to a human-readable string representation.
*
* @return string The string representation of the ApiException object.
*/
public function __toString(): string
{
return ApiHelper::stringify(
'ApiException',
[
'statusCode' => $this->getCode(),
'message' => $this->getMessage()
]
);
}
}