for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Todd Burry <[email protected]>
* @copyright 2009-2014 Vanilla Forums Inc.
* @license MIT
*/
namespace Garden\Exception;
* Represents a 404 not found error.
class NotFoundException extends ClientException {
* Initialize a {@link NotFoundException}.
*
* @param string $message The error message or a one word resource name.
* @param string $description A longer description for the error.
public function __construct($message = 'Page', $description = null) {
if (strpos($message, ' ') === false) {
$message = sprintf('%s not found.', $message);
}
parent::__construct($message, 404, ['description' => $description]);