Skip to content

Commit 6acbcb6

Browse files
committed
[ADDED]
ext-json to composer as required, because of json_encode and json_decode methods; own file for every exception class, for better structure; like functionality; [UPDATED] name spaces of Traits and Exceptions; file names of traits; [FIXED] missing @throws tags; wrong behavior of verifyWhereConditions method if condition is not matched by any if statements;
1 parent 4e82298 commit 6acbcb6

19 files changed

+228
-73
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.4"
14+
"php": ">=5.4",
15+
"ext-json": "*"
1516
},
1617
"autoload": {
1718
"psr-4": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
class ConditionNotAllowedException extends \Exception {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
class EmptyConditionException extends \Exception {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
7+
class EmptyFieldNameException extends \Exception {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
class EmptyStoreDataException extends \Exception {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
class EmptyStoreNameException extends \Exception {}

src/Exceptions/IOException.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
7+
class IOException extends \Exception {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
7+
class IdNotAllowedException extends \Exception {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
7+
class IndexNotFoundException extends \Exception {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
4+
namespace SleekDB\Exceptions;
5+
6+
class InvalidConfigurationException extends \Exception {}

0 commit comments

Comments
 (0)