PHP 8.3.31
Preview: ExceptionDataCollector.php Size: 1.56 KB
/home/getspomw/royalsquad.us/vendor/symfony/http-kernel/DataCollector/ExceptionDataCollector.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\HttpKernel\DataCollector;

use Symfony\Component\ErrorHandler\Exception\FlattenException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @final
 */
class ExceptionDataCollector extends DataCollector
{
    public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
    {
        if (null !== $exception) {
            $this->data = [
                'exception' => FlattenException::createWithDataRepresentation($exception),
            ];
        }
    }

    public function hasException(): bool
    {
        return isset($this->data['exception']);
    }

    public function getException(): \Exception|FlattenException
    {
        return $this->data['exception'];
    }

    public function getMessage(): string
    {
        return $this->data['exception']->getMessage();
    }

    public function getCode(): int
    {
        return $this->data['exception']->getCode();
    }

    public function getStatusCode(): int
    {
        return $this->data['exception']->getStatusCode();
    }

    public function getTrace(): array
    {
        return $this->data['exception']->getTrace();
    }

    public function getName(): string
    {
        return 'exception';
    }
}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
832 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
7.85 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.99 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
897 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
10.34 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
15.38 KB lrw-r--r-- 2026-04-26 11:37:52
Edit Download
4.23 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
1.56 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
545 B lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
10.62 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.17 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
15.90 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
2.29 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download
3.27 KB lrw-rw-rw- 2025-09-17 06:53:21
Edit Download

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