--- /dev/null
+package org.simantics.db.server.internal;\r
+\r
+import org.simantics.db.server.ProCoreException;\r
+\r
+public class InternalException extends ProCoreException {\r
+ private static final long serialVersionUID = -3788787186411326253L;\r
+ InternalException(String message) {\r
+ super(message);\r
+ }\r
+ InternalException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ InternalException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class ProtocolException extends InternalException {\r
+ private static final long serialVersionUID = 166016944501591398L;\r
+ ProtocolException(String message) {\r
+ super(message);\r
+ }\r
+ ProtocolException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ ProtocolException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class TailReadException extends InternalException {\r
+ private static final long serialVersionUID = -2903888693606386087L;\r
+ TailReadException(String message) {\r
+ super(message);\r
+ }\r
+ TailReadException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ TailReadException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class TailException extends InternalException {\r
+ private static final long serialVersionUID = 6624323178477032581L;\r
+ TailException(String message) {\r
+ super(message);\r
+ }\r
+ TailException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ TailException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class ConnectionException extends InternalException {\r
+ private static final long serialVersionUID = -6586144095878019338L;\r
+ ConnectionException(String message) {\r
+ super(message);\r
+ }\r
+ ConnectionException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ ConnectionException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class NotConnectedException extends ConnectionException {\r
+ private static final long serialVersionUID = -9022237373906063606L;\r
+ NotConnectedException(String message) {\r
+ super(message);\r
+ }\r
+ NotConnectedException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ NotConnectedException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class ConnectionIOException extends ConnectionException {\r
+ private static final long serialVersionUID = 774743584586684356L;\r
+ ConnectionIOException(String message) {\r
+ super(message);\r
+ }\r
+ ConnectionIOException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ ConnectionIOException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class SendException extends ConnectionException {\r
+ private static final long serialVersionUID = -5283126259321380935L;\r
+ SendException(String message) {\r
+ super(message);\r
+ }\r
+ SendException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ SendException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class ReconnectException extends ConnectionException {\r
+ private static final long serialVersionUID = -6711153874864122457L;\r
+ ReconnectException(String message) {\r
+ super(message);\r
+ }\r
+ ReconnectException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ ReconnectException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r
+class CompressionException extends ConnectionException {\r
+ private static final long serialVersionUID = -2554866411795192269L;\r
+ CompressionException(String message) {\r
+ super(message);\r
+ }\r
+ CompressionException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+ CompressionException(Throwable cause) {\r
+ super(cause);\r
+ }\r
+}\r