Your IP : 216.73.216.84


Current Path : /home/helpink/www/libraries/vendor/joomla/crypt/src/Exception/
Upload File :
Current File : /home/helpink/www/libraries/vendor/joomla/crypt/src/Exception/InvalidKeyTypeException.php

<?php

/**
 * Part of the Joomla Framework Crypt Package
 *
 * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\Crypt\Exception;

/**
 * Exception representing an invalid Joomla\Crypt\Key type for a cipher
 *
 * @since  1.4.0
 */
class InvalidKeyTypeException extends \InvalidArgumentException implements CryptExceptionInterface
{
    /**
     * InvalidKeyTypeException constructor.
     *
     * @param   string  $expectedKeyType  The expected key type.
     * @param   string  $actualKeyType    The actual key type.
     *
     * @since   1.4.0
     */
    public function __construct($expectedKeyType, $actualKeyType)
    {
        parent::__construct("Invalid key of type: $actualKeyType.  Expected $expectedKeyType.");
    }
}