• File: ApiErrorException.php
  • Full Path: /var/www/crm_set/application/vendor/pusher/pusher-php-server/src/ApiErrorException.php
  • Date Modified: 09/21/2026 4:19 AM
  • File size: 443 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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()}";
    }
}