| Server IP : 46.105.57.169 / Your IP : 216.73.216.144 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maitricfuz/www/maitric/libraries/vendor/php-tuf/php-tuf/src/Exception/ |
Upload File : |
<?php
namespace Tuf\Exception;
/**
* Indicates that an item was not found in the repository data.
*/
class NotFoundException extends TufException
{
/**
* Constructs the exception.
*
* @param string $key
* (optional) The unique identifier, if any, for the item that was not
* found.
* @param string $itemType
* (optional) The type of item (signing key, file, etc.) that was not
* found. Used to construct the exception message. If left blank, the
* word 'item' will be used by default.
* @param \Throwable|null $previous
* (optional) The previous exception, if any, for exception chaining.
*/
public function __construct(string $key = '', string $itemType = 'Item', \Throwable $previous = null)
{
$message = "$itemType not found";
if ($key != "") {
$message = "$itemType not found: $key";
}
parent::__construct($message, 0, $previous);
}
}