aboutsummaryrefslogtreecommitdiff
path: root/src/Phorkie/Exception/NotFound.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-03-26 08:05:46 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-03-26 08:05:46 +0200
commit5f427dd38c8d47711ea73015076bb390761e05dd (patch)
tree023a342befae896020e60581d7efaa91abcdcba4 /src/Phorkie/Exception/NotFound.php
parent6d0777840e50ce98f3d96629b4e92bbdccd3001c (diff)
downloadphorkie-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.php16
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;
+ }
+}
+
+?>