Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
ReputationException | 30 | 5 | 0% | 4 | 9 |
1 | /* | |
2 | * See the NOTICE file distributed with this work for additional | |
3 | * information regarding copyright ownership. | |
4 | * | |
5 | * This is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU Lesser General Public License as | |
7 | * published by the Free Software Foundation; either version 2.1 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This software is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this software; if not, write to the Free | |
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |
19 | */ | |
20 | package org.xwiki.ratings; | |
21 | ||
22 | import com.xpn.xwiki.XWikiException; | |
23 | ||
24 | /** | |
25 | * ReputationException definition. | |
26 | * | |
27 | * @version $Id: c64e83c18475488756343cc21e4266e6bd8610f2 $ | |
28 | * @since 6.4M3 | |
29 | */ | |
30 | public class ReputationException extends RatingsException | |
31 | { | |
32 | private static final long serialVersionUID = 1L; | |
33 | ||
34 | // Module | |
35 | public static final int MODULE_PLUGIN_RATINGS_REPUTATION = 1121; | |
36 | ||
37 | // Error | |
38 | public static final int ERROR_REPUTATION_NOT_IMPLEMENTED = 1121001; | |
39 | ||
40 | /** | |
41 | * ReputationException default constructor. | |
42 | */ | |
43 | 0 | ![]() |
44 | { | |
45 | } | |
46 | ||
47 | /** | |
48 | * ReputationException constructor. | |
49 | * | |
50 | * @param module the module in which the exception occurred | |
51 | * @param code the code for the generated exception | |
52 | * @param message the message for the generated exception | |
53 | */ | |
54 | 0 | ![]() |
55 | { | |
56 | 0 | super(module, code, message); |
57 | } | |
58 | ||
59 | /** | |
60 | * ReputationException constructor. | |
61 | * | |
62 | * @param module the module in which the exception occurred | |
63 | * @param code the code for the generated exception | |
64 | * @param message the message for the generated exception | |
65 | * @param e the Exception that occurred | |
66 | */ | |
67 | 0 | ![]() |
68 | { | |
69 | 0 | super(module, code, message, e); |
70 | } | |
71 | ||
72 | /** | |
73 | * ReputationException constructor. | |
74 | * | |
75 | * @param e the Exception that occurred | |
76 | */ | |
77 | 0 | ![]() |
78 | { | |
79 | 0 | super(e.getModule(), e.getCode(), e.getMessage()); |
80 | ||
81 | 0 | initCause(e.getCause()); |
82 | 0 | setArgs(e.getArgs()); |
83 | } | |
84 | } |