From 0645ec66e1618ce4b52e56212c79196dd7c5c608 Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Sun, 20 Mar 2011 17:09:11 +0000 Subject: Begin migration to HttpCore request handler pattern. Delete protocol duplicates left over from last commit. --- .../exceptions/UnknownFunctionException.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/uk/org/ury/server/exceptions/UnknownFunctionException.java (limited to 'src/uk/org/ury/server/exceptions/UnknownFunctionException.java') diff --git a/src/uk/org/ury/server/exceptions/UnknownFunctionException.java b/src/uk/org/ury/server/exceptions/UnknownFunctionException.java new file mode 100644 index 0000000..13c1386 --- /dev/null +++ b/src/uk/org/ury/server/exceptions/UnknownFunctionException.java @@ -0,0 +1,37 @@ +/* + * UnknownFunctionException.java + * ----------------------------- + * + * Part of the URY Server Platform + * + * V0.00 2011/03/20 + * + * (C) 2011 URY Computing + */ + +package uk.org.ury.server.exceptions; + +/** + * Exception thrown when a handler receives a request for a path that does not + * correspond to one of its functions. + * + * @author Matt Windsor + * + */ +public class UnknownFunctionException extends HandlingException { + /** + * + */ + private static final long serialVersionUID = -7557785978712465975L; + + /** + * Construct a new UnknownFunctionException. + * + * @param path + * The path that was requested. + */ + public UnknownFunctionException(String path) { + super("Not found: " + path); + } + +} -- cgit v1.2.3