first commit

This commit is contained in:
Guillermo Dev
2018-10-10 14:06:21 +02:00
commit 3b85ebdc40
5 changed files with 1911 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace BSR\Search\Exception;
/**
* This exception should be raised when trying to access or
* manipulate a non-existing book.
*
* @package BSR\Lib\Exception
*/
class BookNotFoundException extends WebException {
public function __construct($code) {
parent::__construct('BookNotFound', "The book with code $code was not found.", 404);
}
}