1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.ratings; |
21 |
|
|
22 |
|
import com.xpn.xwiki.XWikiException; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@version |
28 |
|
@since |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 4 |
Complexity Density: 0.8 |
|
30 |
|
public class RatingsException extends XWikiException |
31 |
|
{ |
32 |
|
private static final long serialVersionUID = 1L; |
33 |
|
|
34 |
|
|
35 |
|
public static final int MODULE_PLUGIN_RATINGS = 1120; |
36 |
|
|
37 |
|
|
38 |
|
public static final int ERROR_RATINGS_CREATECONTAINER_NULLSPACE = 1120001; |
39 |
|
|
40 |
|
public static final int ERROR_RATINGS_ADDRATING_NULLCONTAINER = 1120002; |
41 |
|
|
42 |
|
public static final int ERROR_RATINGS_ADDRATING_NULLCONTENT = 1120003; |
43 |
|
|
44 |
|
public static final int ERROR_RATINGS_INVALID_RATING_ID = 1120004; |
45 |
|
|
46 |
|
public static final int ERROR_RATINGS_SAVERATING_NULLDOCUMENT = 1120005; |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
51 |
0 |
public RatingsException()... |
52 |
|
{ |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
@param |
59 |
|
@param |
60 |
|
@param |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0 |
public RatingsException(int module, int code, String message)... |
63 |
|
{ |
64 |
0 |
super(module, code, message); |
65 |
|
} |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
@param |
72 |
|
@param |
73 |
|
@param |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0 |
public RatingsException(int module, int code, String message, Exception e)... |
76 |
|
{ |
77 |
0 |
super(module, code, message, e); |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@param |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
85 |
0 |
public RatingsException(XWikiException e)... |
86 |
|
{ |
87 |
0 |
super(e.getModule(), e.getCode(), e.getMessage()); |
88 |
|
|
89 |
0 |
initCause(e.getCause()); |
90 |
0 |
setArgs(e.getArgs()); |
91 |
|
} |
92 |
|
} |