Skip to content

Commit 4b838bd

Browse files
committed
Create CrawlerException.php
1 parent ea4f0d6 commit 4b838bd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Helpers/CrawlerException.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* @author : Jakiboy
4+
* @package : FloatPHP
5+
* @subpackage : Exceptions Component
6+
* @version : 1.3.x
7+
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected]>
8+
* @link : https://floatphp.com
9+
* @license : MIT
10+
*
11+
* This file if a part of FloatPHP Framework.
12+
*/
13+
14+
declare(strict_types=1);
15+
16+
namespace FloatPHP\Exceptions\Helpers;
17+
18+
class CrawlerException extends \Exception
19+
{
20+
public static function insufficientResources(int $cores = 2) : string
21+
{
22+
return "Insufficient server resources: Ensure adequate memory and CPU cores ({$cores}) are available";
23+
}
24+
}

0 commit comments

Comments
 (0)