first commit
This commit is contained in:
15
src/Search/Exception/BookNotFoundException.php
Normal file
15
src/Search/Exception/BookNotFoundException.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user