PHP 8.3.31
Preview: ProviderException.php Size: 992 B
/home/getspomw/royalsquad.us/vendor/symfony/translation/Exception/ProviderException.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Translation\Exception;

use Symfony\Contracts\HttpClient\ResponseInterface;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class ProviderException extends RuntimeException implements ProviderExceptionInterface
{
    private string $debug;

    public function __construct(
        string $message,
        private ResponseInterface $response,
        int $code = 0,
        ?\Exception $previous = null,
    ) {
        $this->debug = $response->getInfo('debug') ?? '';

        parent::__construct($message, $code, $previous);
    }

    public function getResponse(): ResponseInterface
    {
        return $this->response;
    }

    public function getDebug(): string
    {
        return $this->debug;
    }
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
22.96 KB lrw-r--r-- 2026-04-27 08:45:06
Edit Download
469 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
631 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
521 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
493 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
487 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
671 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
492 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
992 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
559 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
497 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
2.02 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download

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