31 lines
759 B
PHP
31 lines
759 B
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 error encrypting data
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
class UnsupportedCipherException extends \LogicException implements CryptExceptionInterface
|
|
{
|
|
/**
|
|
* UnsupportedCipherException constructor.
|
|
*
|
|
* @param string $class The class name of the unsupported cipher.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
public function __construct(string $class)
|
|
{
|
|
parent::__construct("The '$class' cipher is not supported in this environment.");
|
|
}
|
|
}
|