PHP 8.3.31
Preview: InvalidRequestException.php Size: 1.02 KB
/home/getspomw/royalsquad.us/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php

<?php

declare(strict_types=1);

namespace MaxMind\Exception;

/**
 * Thrown when a MaxMind web service returns an error relating to the request.
 */
class InvalidRequestException extends HttpException
{
    /**
     * The code returned by the MaxMind web service.
     *
     * @var string
     */
    private $error;

    /**
     * @param string     $message    the exception message
     * @param string     $error      the error code returned by the MaxMind web service
     * @param int        $httpStatus the HTTP status code of the response
     * @param string     $uri        the URI queries
     * @param \Exception $previous   the previous exception, if any
     */
    public function __construct(
        string $message,
        string $error,
        int $httpStatus,
        string $uri,
        ?\Exception $previous = null
    ) {
        $this->error = $error;
        parent::__construct($message, $httpStatus, $uri, $previous);
    }

    public function getErrorCode(): string
    {
        return $this->error;
    }
}

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).