use repository and file classes
[phorkie.git] / src / Phorkie / Exception / Input.php
diff --git a/src/Phorkie/Exception/Input.php b/src/Phorkie/Exception/Input.php
new file mode 100644 (file)
index 0000000..2b675c1
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+namespace Phorkie;
+
+/**
+ * Input from e.g. the URL is invalid, like a non-numeric string when one was
+ * expected
+ */
+class Exception_Input extends Exception
+{
+    public function __construct($msg = '', $code = 0)
+    {
+        parent::__construct($msg, $code);
+        $this->httpStatusCode = 400;
+    }
+}
+
+?>