aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/protocol/exceptions/InvalidMessageException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/org/ury/protocol/exceptions/InvalidMessageException.java')
-rw-r--r--src/uk/org/ury/protocol/exceptions/InvalidMessageException.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/uk/org/ury/protocol/exceptions/InvalidMessageException.java b/src/uk/org/ury/protocol/exceptions/InvalidMessageException.java
new file mode 100644
index 0000000..3cf1105
--- /dev/null
+++ b/src/uk/org/ury/protocol/exceptions/InvalidMessageException.java
@@ -0,0 +1,33 @@
+/**
+ *
+ */
+package uk.org.ury.protocol.exceptions;
+
+
+/**
+ * Generic exception thrown when a protocol function cannot process a
+ * message due to an issue with the message.
+ *
+ * @author Matt Windsor
+ */
+
+public class InvalidMessageException extends Exception
+{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -3972492943653273528L;
+
+
+ /**
+ * Construct a new InvalidMessageException with a reason.
+ *
+ * @param reason The reason for throwing the exception.
+ */
+
+ public
+ InvalidMessageException (String reason)
+ {
+ super (reason);
+ }
+}