Skip to content

Commit aff24bf

Browse files
committed
Update 1.0.2
1 parent e714ccd commit aff24bf

File tree

4 files changed

+86
-62
lines changed

4 files changed

+86
-62
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "floatphp/exceptions",
3-
"version" : "1.0.1",
3+
"version" : "1.0.2",
44
"type": "library",
55
"description": "FloatPHP Exceptions Components",
66
"keywords": ["floatphp","micro-framework","framework","PSR","ORM","jakiboy"],

src/Helpers/CacheException.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage : Exceptions Component
6+
* @version : 1.0.2
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT
11+
*
12+
* This file if a part of FloatPHP Framework.
13+
*/
14+
15+
declare(strict_types=1);
16+
17+
namespace FloatPHP\Exceptions\Helpers;
18+
19+
class CacheException extends \Exception
20+
{
21+
public static function invalidCacheDriver($driver)
22+
{
23+
return "Invalid cache driver : {$driver}";
24+
}
25+
26+
public static function invalidCacheInstance()
27+
{
28+
return 'Invalid driver instance : Must implements CacheInterface';
29+
}
30+
}

src/Kernel/ConfigException.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/Kernel/ConfigurationException.php

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
/**
3+
* @author : JIHAD SINNAOUR
4+
* @package : FloatPHP
5+
* @subpackage : Exceptions Component
6+
* @version : 1.0.2
7+
* @category : PHP framework
8+
* @copyright : (c) 2017 - 2023 Jihad Sinnaour <mail@jihadsinnaour.com>
9+
* @link : https://www.floatphp.com
10+
* @license : MIT
11+
*
12+
* This file if a part of FloatPHP Framework.
13+
*/
14+
15+
declare(strict_types=1);
16+
17+
namespace FloatPHP\Exceptions\Kernel;
18+
19+
class ConfigurationException extends \Exception
20+
{
21+
public static function invalidApplicationConfiguration($error)
22+
{
23+
return "Invalid Application Configuration : {$error}";
24+
}
25+
26+
public static function invalidApplicationConfigurationFile()
27+
{
28+
return 'Invalid Application Configuration File';
29+
}
30+
31+
public static function invalidModuleConfiguration($error)
32+
{
33+
return "Invalid Module Configuration : {$error}";
34+
}
35+
36+
public static function invalidModuleConfigurationFile()
37+
{
38+
return 'Invalid Module Configuration File';
39+
}
40+
41+
public static function invalidRouteConfiguration($error)
42+
{
43+
return "Invalid Route Configuration : {$error}";
44+
}
45+
46+
public static function invalidRouteConfigurationFile()
47+
{
48+
return 'Invalid Route Configuration File';
49+
}
50+
51+
public static function invalidDatabaseConfiguration()
52+
{
53+
return "Invalid Database Configuration";
54+
}
55+
}

0 commit comments

Comments
 (0)