[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/crypt/src/Exception/ -> InvalidKeyTypeException.php (source)

   1  <?php
   2  /**
   3   * Part of the Joomla Framework Crypt Package
   4   *
   5   * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
   6   * @license    GNU General Public License version 2 or later; see LICENSE
   7   */
   8  
   9  namespace Joomla\Crypt\Exception;
  10  
  11  /**
  12   * Exception representing an invalid Joomla\Crypt\Key type for a cipher
  13   *
  14   * @since  1.4.0
  15   */
  16  class InvalidKeyTypeException extends \InvalidArgumentException implements CryptExceptionInterface
  17  {
  18      /**
  19       * InvalidKeyTypeException constructor.
  20       *
  21       * @param   string  $expectedKeyType  The expected key type.
  22       * @param   string  $actualKeyType    The actual key type.
  23       *
  24       * @since   1.4.0
  25       */
  26  	public function __construct($expectedKeyType, $actualKeyType)
  27      {
  28          parent::__construct("Invalid key of type: $actualKeyType.  Expected $expectedKeyType.");
  29      }
  30  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer