PHP 8.3.31
Preview: ParseErrorException.php Size: 1.74 KB
/home/getspomw/royalsquad.us/vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php

<?php

declare(strict_types=1);

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Carbon\Exceptions;

use InvalidArgumentException as BaseInvalidArgumentException;
use Throwable;

class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException
{
    /**
     * The expected.
     *
     * @var string
     */
    protected $expected;

    /**
     * The actual.
     *
     * @var string
     */
    protected $actual;

    /**
     * The help message.
     *
     * @var string
     */
    protected $help;

    /**
     * Constructor.
     *
     * @param string         $expected
     * @param string         $actual
     * @param int            $code
     * @param Throwable|null $previous
     */
    public function __construct($expected, $actual, $help = '', $code = 0, ?Throwable $previous = null)
    {
        $this->expected = $expected;
        $this->actual = $actual;
        $this->help = $help;

        $actual = $actual === '' ? 'data is missing' : "get '$actual'";

        parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous);
    }

    /**
     * Get the expected.
     *
     * @return string
     */
    public function getExpected(): string
    {
        return $this->expected;
    }

    /**
     * Get the actual.
     *
     * @return string
     */
    public function getActual(): string
    {
        return $this->actual;
    }

    /**
     * Get the help message.
     *
     * @return string
     */
    public function getHelp(): string
    {
        return $this->help;
    }
}

Directory Contents

Dirs: 0 × Files: 31

Name Size Perms Modified Actions
942 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.07 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
351 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
439 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
31.92 KB lrw-r--r-- 2026-04-26 11:41:02
Edit Download
320 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.02 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
353 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
463 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.35 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
465 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
467 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
469 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
474 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
467 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
463 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.20 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
462 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
956 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.94 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.74 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
345 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
456 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
977 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.04 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
929 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
431 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download
570 B lrw-rw-rw- 2025-09-17 06:53:16
Edit Download

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