Skip to content

Commit 90a420f

Browse files
committed
Update
1 parent 6ce884f commit 90a420f

File tree

7 files changed

+40
-9
lines changed

7 files changed

+40
-9
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
composer.phar
22
/vendor/
3-
4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
3+
*.bak.php

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.1.3",
3+
"version" : "1.2.0",
44
"type": "library",
55
"description": "FloatPHP Exceptions Components",
66
"keywords": ["floatphp","micro-framework","framework","PSR","ORM","jakiboy"],

src/Classes/RouterException.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* @author : Jakiboy
4+
* @package : FloatPHP
5+
* @subpackage : Exceptions Component
6+
* @version : 1.2.x
7+
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <mail@jihadsinnaour.com>
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\Classes;
17+
18+
class RouterException extends \RuntimeException
19+
{
20+
public static function redeclared(?string $name = null)
21+
{
22+
return "Can not redeclare route '{$name}'";
23+
}
24+
25+
public static function notExisting(?string $name = null)
26+
{
27+
return "Route '{$name}' does not exist";
28+
}
29+
30+
public static function notTraversable()
31+
{
32+
return 'Routes should be an array or an instance of Traversable';
33+
}
34+
}

src/Helpers/CacheException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author : Jakiboy
44
* @package : FloatPHP
55
* @subpackage : Exceptions Component
6-
* @version : 1.1.0
6+
* @version : 1.2.x
77
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <mail@jihadsinnaour.com>
88
* @link : https://floatphp.com
99
* @license : MIT

src/Helpers/ConfigurableException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author : Jakiboy
44
* @package : FloatPHP
55
* @subpackage : Exceptions Component
6-
* @version : 1.1.0
6+
* @version : 1.2.x
77
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <mail@jihadsinnaour.com>
88
* @link : https://floatphp.com
99
* @license : MIT

src/Kernel/ConfigurationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author : Jakiboy
44
* @package : FloatPHP
55
* @subpackage : Exceptions Component
6-
* @version : 1.1.0
6+
* @version : 1.2.x
77
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <mail@jihadsinnaour.com>
88
* @link : https://floatphp.com
99
* @license : MIT

src/Kernel/OrmException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author : Jakiboy
44
* @package : FloatPHP
55
* @subpackage : Exceptions Component
6-
* @version : 1.1.0
6+
* @version : 1.2.x
77
* @copyright : (c) 2018 - 2024 Jihad Sinnaour <mail@jihadsinnaour.com>
88
* @link : https://floatphp.com
99
* @license : MIT

0 commit comments

Comments
 (0)