This commit is contained in:
2021-07-25 18:20:49 +02:00
parent 644f3697c7
commit 5f6f382ace
10 changed files with 1723 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace Pusher;
/**
* HTTP error responses.
* getCode() will return the response HTTP status code,
* and getMessage() will return the response body.
*/
class ApiErrorException extends PusherException
{
/**
* Returns the string representation of the exception.
*
* @return string
*/
public function __toString(): string
{
return "(Status {$this->getCode()}) {$this->getMessage()}";
}
}