diff options
Diffstat (limited to 'src/phorkie/Exception/NotFound.php')
| -rw-r--r-- | src/phorkie/Exception/NotFound.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/phorkie/Exception/NotFound.php b/src/phorkie/Exception/NotFound.php new file mode 100644 index 0000000..450b9f9 --- /dev/null +++ b/src/phorkie/Exception/NotFound.php @@ -0,0 +1,16 @@ +<?php +namespace phorkie; + +/** + * Something could not be found + */ +class Exception_NotFound extends Exception +{ + public function __construct($msg = '', $code = 0) + { + parent::__construct($msg, $code); + $this->httpStatusCode = 404; + } +} + +?> |
