PHP 8.3.31
Preview: HttpException.php Size: 959 B
/home/getspomw/royalsquad.us/vendor/maxmind/web-service-common/src/Exception/HttpException.php

<?php

declare(strict_types=1);

namespace MaxMind\Exception;

/**
 *  This class represents an HTTP transport error.
 */
class HttpException extends WebServiceException
{
    /**
     * The URI queried.
     *
     * @var string
     */
    private $uri;

    /**
     * @param string     $message    a message describing the error
     * @param int        $httpStatus the HTTP status code of the response
     * @param string     $uri        the URI used in the request
     * @param \Exception $previous   the previous exception, if any
     */
    public function __construct(
        string $message,
        int $httpStatus,
        string $uri,
        ?\Exception $previous = null
    ) {
        $this->uri = $uri;
        parent::__construct($message, $httpStatus, $previous);
    }

    public function getUri(): string
    {
        return $this->uri;
    }

    public function getStatusCode(): int
    {
        return $this->getCode();
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
203 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
17.44 KB lrw-r--r-- 2026-04-27 08:58:48
Edit Download
959 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
202 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
337 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
1.02 KB lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
148 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
233 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download
190 B lrw-rw-rw- 2024-11-14 09:44:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).