aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/server/exceptions/HandlerNotFoundException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/org/ury/server/exceptions/HandlerNotFoundException.java')
-rw-r--r--src/uk/org/ury/server/exceptions/HandlerNotFoundException.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/uk/org/ury/server/exceptions/HandlerNotFoundException.java b/src/uk/org/ury/server/exceptions/HandlerNotFoundException.java
new file mode 100644
index 0000000..7b614f6
--- /dev/null
+++ b/src/uk/org/ury/server/exceptions/HandlerNotFoundException.java
@@ -0,0 +1,51 @@
+/**
+ *
+ */
+package uk.org.ury.server.exceptions;
+
+/**
+ * Exception thrown when the server request handler requested
+ * by the client is not * found in the class space.
+ *
+ * @author Matt Windsor
+ */
+
+public class HandlerNotFoundException extends HandlingException
+{
+
+ /**
+ * TODO: Change this! ---v
+ */
+
+ private static final long serialVersionUID = -397479334359858162L;
+
+
+ /**
+ * Construct a new HandlerNotFoundException with a
+ * default reason.
+ */
+
+ public
+ HandlerNotFoundException ()
+ {
+ super ("Handler not found.");
+ }
+
+
+ /**
+ * Construct a new HandlerNotFoundException with a class name and
+ * chained exception.
+ *
+ * @param className The name of the missing handler class.
+ *
+ * @param cause The exception that this new exception is to
+ * wrap.
+ */
+
+ public
+ HandlerNotFoundException (String className, Throwable cause)
+ {
+ super ("Handler " + className + " not found. ("
+ + cause.getMessage () + ")", cause);
+ }
+}