CoreFiles by mySites.guru
InvalidParameterException.php42 lines, 966 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
77c5cf5629d93def41f674f6dbee997f
sha1
af2c92e2a05e0f3441fee5b81d0c2e63f4c5e3b3
sha256
a614965053c73408f46a6ac2912db1734637e0085dd8fa6812338884d0b45b0a
<?php

/*
 * This file is part of JSON-API.
 *
 * (c) Toby Zerner <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tobscure\JsonApi\Exception;

use Exception;

class InvalidParameterException extends Exception
{
    /**
     * @var string The parameter that caused this exception.
     */
    private $invalidParameter;

    /**
     * {@inheritdoc}
     *
     * @param string $invalidParameter The parameter that caused this exception.
     */
    public function __construct($message = '', $code = 0, $previous = null, $invalidParameter = '')
    {
        parent::__construct($message, $code, $previous);

        $this->invalidParameter = $invalidParameter;
    }

    /**
     * @return string The parameter that caused this exception.
     */
    public function getInvalidParameter()
    {
        return $this->invalidParameter;
    }
}

The same content is in 295 releases, Joomla 4.0.0-alpha7 to 6.3.0-alpha1. See them all, or every version of this file.