aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/server/exceptions/NotAHandlerException.java
diff options
context:
space:
mode:
authorMatt Windsor <mattwindsor@btinternet.com>2011-03-18 14:01:42 +0000
committerMatt Windsor <mattwindsor@btinternet.com>2011-03-18 14:01:42 +0000
commitdfde3f3d62ee5de17d09195513711fd006cbf270 (patch)
tree0fb70b0f75927a03daa8ad8ddc218f6e657e6d66 /src/uk/org/ury/server/exceptions/NotAHandlerException.java
parentb6831f847f93622a64f1b776bc3cf62befddab98 (diff)
Remove duplicate files; begin rewriting server to use Apache HttpCore by using HttpCore Response resources; exception-based error handling introduced for get requests.
Diffstat (limited to 'src/uk/org/ury/server/exceptions/NotAHandlerException.java')
-rw-r--r--src/uk/org/ury/server/exceptions/NotAHandlerException.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/uk/org/ury/server/exceptions/NotAHandlerException.java b/src/uk/org/ury/server/exceptions/NotAHandlerException.java
new file mode 100644
index 0000000..9a67d62
--- /dev/null
+++ b/src/uk/org/ury/server/exceptions/NotAHandlerException.java
@@ -0,0 +1,34 @@
+/**
+ *
+ */
+package uk.org.ury.server.exceptions;
+
+/**
+ * Exception thrown if the class requested as a handler by the client
+ * is, in fact, not a handler (it does not implement RequestHandler).
+ *
+ * @author Matt Windsor
+ */
+
+public class NotAHandlerException extends HandlingException
+{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7268289187311868036L;
+
+ /**
+ * Construct a NotAHandlerException with the name of the class that
+ * is not a handler.
+ *
+ * @param className The name of the offending class.
+ */
+
+ public
+ NotAHandlerException (String className)
+ {
+ super ("Class " + className + " is not a request handler.");
+ // TODO Auto-generated constructor stub
+ }
+
+}