This project has retired. For details please refer to its
Attic page.
CmisBaseException xref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.chemistry.opencmis.commons.exceptions;
20
21 import java.math.BigInteger;
22 import java.util.Map;
23
24
25
26
27 public abstract class CmisBaseException extends RuntimeException {
28
29 private static final long serialVersionUID = 1L;
30
31
32 private BigInteger code = BigInteger.ZERO;
33
34
35
36
37
38 private String errorContent;
39
40
41 private Map<String, String> additionalData;
42
43
44
45
46 protected CmisBaseException() {
47 super();
48 }
49
50
51
52
53
54
55
56
57
58
59
60 protected CmisBaseException(String message, BigInteger code, Throwable cause) {
61 super(message, cause);
62 this.code = code;
63 }
64
65
66
67
68
69
70
71
72
73
74
75
76
77 protected CmisBaseException(String message, String errorContent, Map<String, String> additionalData, Throwable cause) {
78 super(message, cause);
79 this.errorContent = errorContent;
80 this.additionalData = additionalData;
81 }
82
83
84
85
86
87
88
89
90
91
92
93 protected CmisBaseException(String message, String errorContent, Throwable cause) {
94 this(message, errorContent, null, cause);
95 }
96
97
98
99
100
101
102
103
104
105 protected CmisBaseException(String message, BigInteger code) {
106 super(message);
107 this.code = code;
108 }
109
110
111
112
113
114
115
116
117
118
119
120 protected CmisBaseException(String message, BigInteger code, String errorContent) {
121 super(message);
122 this.code = code;
123 this.errorContent = errorContent;
124 }
125
126
127
128
129
130
131
132
133
134
135
136
137
138 protected CmisBaseException(String message, BigInteger code, String errorContent, Map<String, String> additionalData) {
139 this(message, code, errorContent);
140 this.additionalData = additionalData;
141 }
142
143
144
145
146
147
148
149
150
151 protected CmisBaseException(String message, String errorContent) {
152 super(message);
153 this.errorContent = errorContent;
154 }
155
156
157
158
159
160
161
162
163
164 protected CmisBaseException(String message, Throwable cause) {
165 this(message, (BigInteger) null, cause);
166 }
167
168
169
170
171
172
173
174 protected CmisBaseException(String message) {
175 this(message, (BigInteger) null);
176 }
177
178
179
180
181
182
183
184
185 public BigInteger getCode() {
186 return code;
187 }
188
189
190
191
192
193
194
195 public String getErrorContent() {
196 return errorContent;
197 }
198
199
200
201
202
203
204 public Map<String, String> getAdditionalData() {
205 return additionalData;
206 }
207
208
209
210
211
212
213
214
215
216 public String getAdditionalData(String key) {
217 if (additionalData == null) {
218 return null;
219 }
220
221 return additionalData.get(key);
222 }
223
224
225
226
227
228
229
230 public void setAdditionalData(Map<String, String> data) {
231 additionalData = data;
232 }
233
234
235
236
237
238
239 public abstract String getExceptionName();
240 }