aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Exception/Input.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-03 20:15:57 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-03 20:15:57 +0200
commit2b4b34a76f42841e964a549fc64c02ba4f60a3f4 (patch)
treec83a973cae8d45e01384dabe4ad33dc40c09a5d1 /src/phorkie/Exception/Input.php
parent7dcd592544ae0b55d0e205ff83631067a0d0aa6b (diff)
downloadphorkie-2b4b34a76f42841e964a549fc64c02ba4f60a3f4.tar.gz
phorkie-2b4b34a76f42841e964a549fc64c02ba4f60a3f4.zip
rename Phorkie to phorkie (lowercase)
Diffstat (limited to 'src/phorkie/Exception/Input.php')
-rw-r--r--src/phorkie/Exception/Input.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/phorkie/Exception/Input.php b/src/phorkie/Exception/Input.php
new file mode 100644
index 0000000..7f27b42
--- /dev/null
+++ b/src/phorkie/Exception/Input.php
@@ -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;
+ }
+}
+
+?>