diff --git a/Exceptions/Data/FoundTooManyException.php b/Exceptions/Data/FoundTooManyException.php new file mode 100644 index 0000000..9b75af0 --- /dev/null +++ b/Exceptions/Data/FoundTooManyException.php @@ -0,0 +1,26 @@ + + * @license MIT + */ +class FoundTooManyException extends DataException +{ + public function __construct( + $message = 'Found too many items in the data source.', + $code = 0, + $previous = null + ) { + parent::__construct($message, $code, $previous); + } +} diff --git a/README.md b/README.md index 4a340e2..6aa5ba8 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ Data exceptions pertain to all the validation aspect of data and the operations - FormatException - IntegrityException - NotFoundException + - TooManyFoundException - TypeException - ValidationException diff --git a/Tests/ExceptionTest.php b/Tests/ExceptionTest.php index 46fb053..53952ba 100644 --- a/Tests/ExceptionTest.php +++ b/Tests/ExceptionTest.php @@ -17,6 +17,7 @@ public function providesConstructorTestClasses() [\Exceptions\Data\FormatException::class], [\Exceptions\Data\IntegrityException::class], [\Exceptions\Data\NotFoundException::class], + [\Exceptions\Data\FoundTooManyException::class], [\Exceptions\Data\TypeException::class], [\Exceptions\Data\ValidationException::class], [\Exceptions\Http\Client\BadRequestException::class],