diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-03-26 08:05:46 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-03-26 08:05:46 +0200 |
| commit | 5f427dd38c8d47711ea73015076bb390761e05dd (patch) | |
| tree | 023a342befae896020e60581d7efaa91abcdcba4 /src/Phorkie/Exception/NotFound.php | |
| parent | 6d0777840e50ce98f3d96629b4e92bbdccd3001c (diff) | |
| download | phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.tar.gz phorkie-5f427dd38c8d47711ea73015076bb390761e05dd.zip | |
use repository and file classes
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..a62d1f1 --- /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; + } +} + +?> |
