16 lines
366 B
PHP
16 lines
366 B
PHP
<?php
|
|
|
|
namespace BSR\Lib\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);
|
|
}
|
|
}
|