]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.server/src/org/simantics/db/server/internal/InternalException.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db.server / src / org / simantics / db / server / internal / InternalException.java
1 package org.simantics.db.server.internal;
2
3 import org.simantics.db.server.ProCoreException;
4
5 public class InternalException extends ProCoreException {
6     private static final long serialVersionUID = -3788787186411326253L;
7     InternalException(String message) {
8         super(message);
9     }
10     InternalException(String message, Throwable cause) {
11         super(message, cause);
12     }
13     InternalException(Throwable cause) {
14         super(cause);
15     }
16 }
17 class ProtocolException extends InternalException {
18     private static final long serialVersionUID = 166016944501591398L;
19     ProtocolException(String message) {
20         super(message);
21     }
22     ProtocolException(String message, Throwable cause) {
23         super(message, cause);
24     }
25     ProtocolException(Throwable cause) {
26         super(cause);
27     }
28 }
29 class TailReadException extends InternalException {
30     private static final long serialVersionUID = -2903888693606386087L;
31     TailReadException(String message) {
32         super(message);
33     }
34     TailReadException(String message, Throwable cause) {
35         super(message, cause);
36     }
37     TailReadException(Throwable cause) {
38         super(cause);
39     }
40 }
41 class TailException extends InternalException {
42     private static final long serialVersionUID = 6624323178477032581L;
43     TailException(String message) {
44         super(message);
45     }
46     TailException(String message, Throwable cause) {
47         super(message, cause);
48     }
49     TailException(Throwable cause) {
50         super(cause);
51     }
52 }
53 class ConnectionException extends InternalException {
54     private static final long serialVersionUID = -6586144095878019338L;
55     ConnectionException(String message) {
56         super(message);
57     }
58     ConnectionException(String message, Throwable cause) {
59         super(message, cause);
60     }
61     ConnectionException(Throwable cause) {
62         super(cause);
63     }
64 }
65 class NotConnectedException extends ConnectionException {
66     private static final long serialVersionUID = -9022237373906063606L;
67     NotConnectedException(String message) {
68         super(message);
69     }
70     NotConnectedException(String message, Throwable cause) {
71         super(message, cause);
72     }
73     NotConnectedException(Throwable cause) {
74         super(cause);
75     }
76 }
77 class ConnectionIOException extends ConnectionException {
78     private static final long serialVersionUID = 774743584586684356L;
79     ConnectionIOException(String message) {
80         super(message);
81     }
82     ConnectionIOException(String message, Throwable cause) {
83         super(message, cause);
84     }
85     ConnectionIOException(Throwable cause) {
86         super(cause);
87     }
88 }
89 class SendException extends ConnectionException {
90     private static final long serialVersionUID = -5283126259321380935L;
91     SendException(String message) {
92         super(message);
93     }
94     SendException(String message, Throwable cause) {
95         super(message, cause);
96     }
97     SendException(Throwable cause) {
98         super(cause);
99     }
100 }
101 class ReconnectException extends ConnectionException {
102     private static final long serialVersionUID = -6711153874864122457L;
103     ReconnectException(String message) {
104         super(message);
105     }
106     ReconnectException(String message, Throwable cause) {
107         super(message, cause);
108     }
109     ReconnectException(Throwable cause) {
110         super(cause);
111     }
112 }
113 class CompressionException extends ConnectionException {
114     private static final long serialVersionUID = -2554866411795192269L;
115     CompressionException(String message) {
116         super(message);
117     }
118     CompressionException(String message, Throwable cause) {
119         super(message, cause);
120     }
121     CompressionException(Throwable cause) {
122         super(cause);
123     }
124 }