forked from cakephp/cakephp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotFoundException.php
More file actions
35 lines (33 loc) · 967 Bytes
/
Copy pathNotFoundException.php
File metadata and controls
35 lines (33 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @since 3.0.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Network\Exception;
/**
* Represents an HTTP 404 error.
*
*/
class NotFoundException extends HttpException
{
/**
* Constructor
*
* @param string $message If no message is given 'Not Found' will be the message
* @param int $code Status code, defaults to 404
*/
public function __construct($message = null, $code = 404)
{
if (empty($message)) {
$message = 'Not Found';
}
parent::__construct($message, $code);
}
}