Java: Added a session handler with authentication capability.
[doldaconnect.git] / lib / java / dolda / dolcon / ProtocolException.java
diff --git a/lib/java/dolda/dolcon/ProtocolException.java b/lib/java/dolda/dolcon/ProtocolException.java
new file mode 100644 (file)
index 0000000..474bea1
--- /dev/null
@@ -0,0 +1,16 @@
+package dolda.dolcon;
+
+/**
+ * The purpose of this exception is to wrap together all the low-level
+ * protocol exceptions, that the programmer is unlikely to want to
+ * differentiate between.
+ */
+public class ProtocolException extends Exception {
+    public ProtocolException(String msg) {
+       super(msg);
+    }
+    
+    public ProtocolException(Exception cause) {
+       super("Unhandled DC protocol condition", cause);
+    }
+}