misc_pterodactyl-panel/app/Exceptions/Service/Backup/TooManyBackupsException.php

19 lines
438 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Exceptions\Service\Backup;
use Pterodactyl\Exceptions\DisplayException;
class TooManyBackupsException extends DisplayException
{
/**
* TooManyBackupsException constructor.
*/
public function __construct(int $backupLimit)
{
parent::__construct(
sprintf('Cannot create a new backup, this server has reached its limit of %d backups.', $backupLimit)
);
}
}