Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • Modulework
    • Modules
      • Http
        • Exceptions
        • Utilities
  • PHP

Interfaces

  • HttpExceptionInterface

Exceptions

  • HttpNotFoundException
 1 <?php namespace Modulework\Modules\Http\Exceptions;
 2 /*
 3  * (c) Christian Gärtner <christiangaertner.film@googlemail.com>
 4  * This file is part of the Modulework Framework
 5  * License: View distributed LICENSE file
 6  */
 7 
 8 use Exception;
 9 
10 /**
11 * HttpNotFoundException
12 * Should be thrown if a 404 should be send to the browser
13 */
14 class HttpNotFoundException extends Exception implements HttpExceptionInterface
15 {
16     /**
17      * {@inheritdoc}
18      */
19     public function __construct($code = null, $message = null, Exception $previous = null)
20     {
21         $code = $code ?: 404;
22         parent::__construct($message, $code, $previous);
23     }
24 
25     public function getStatusCode()
26     {
27         return $this->code;
28     }
29 }
API documentation generated by ApiGen 2.8.0