|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ActionException | Line # 34 | 6 | 6 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | /* | |
2 | * The SmartWeb Framework | |
3 | * Copyright (C) 2004-2006 | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library 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 library; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | * | |
19 | * For further informations on the SmartWeb Framework please visit | |
20 | * | |
21 | * http://smartweb.sourceforge.net | |
22 | */ | |
23 | ||
24 | package net.smartlab.web; | |
25 | ||
26 | import org.apache.struts.util.ModuleException; | |
27 | ||
28 | /** | |
29 | * Thrown by <code>Action</code> methods to indicate the requested operation | |
30 | * has failed. | |
31 | * | |
32 | * @author rlogiacco | |
33 | */ | |
34 | public class ActionException extends ModuleException { | |
35 | ||
36 | private static final long serialVersionUID = 5024885398839776328L; | |
37 | ||
38 | /** | |
39 | * Instantiates the class with a message. The providen message is used as a | |
40 | * key and searched in available resource bundles. If the message is not a | |
41 | * valid resource key than it's used directly. | |
42 | * | |
43 | * @param message the key to be searched in resource bundles. | |
44 | */ | |
45 | 0 | public ActionException(String message) { |
46 | 0 | super(message); |
47 | } | |
48 | ||
49 | /** | |
50 | * Instantiates the class with a message and a parameter. The providen | |
51 | * message is used as a key and searched in available resource bundles. If | |
52 | * the message is not a valid resource key than it's used directly. | |
53 | * | |
54 | * @param message the key to be searched in resource bundles. | |
55 | * @param param an object to be used for param substitution. | |
56 | */ | |
57 | 0 | public ActionException(String message, Object param) { |
58 | 0 | super(message, param); |
59 | } | |
60 | ||
61 | /** | |
62 | * Instantiates the class with a message and two parameters. The providen | |
63 | * message is used as a key and searched in available resource bundles. If | |
64 | * the message is not a valid resource key than it's used directly. | |
65 | * | |
66 | * @param message the key to be searched in resource bundles. | |
67 | * @param param1 an object to be used for param substitution. | |
68 | * @param param2 an object to be used for param substitution. | |
69 | */ | |
70 | 0 | public ActionException(String message, Object param1, Object param2) { |
71 | 0 | super(message, param1, param2); |
72 | } | |
73 | ||
74 | /** | |
75 | * Instantiates the class with a message and three parameters. The providen | |
76 | * message is used as a key and searched in available resource bundles. If | |
77 | * the message is not a valid resource key than it's used directly. | |
78 | * | |
79 | * @param message the key to be searched in resource bundles. | |
80 | * @param param1 an object to be used for param substitution. | |
81 | * @param param2 an object to be used for param substitution. | |
82 | * @param param3 an object to be used for param substitution. | |
83 | */ | |
84 | 0 | public ActionException(String message, Object param1, Object param2, Object param3) { |
85 | 0 | super(message, param1, param2, param3); |
86 | } | |
87 | ||
88 | /** | |
89 | * Instantiates the class with a message and four parameters. The providen | |
90 | * message is used as a key and searched in available resource bundles. If | |
91 | * the message is not a valid resource key than it's used directly. | |
92 | * | |
93 | * @param message the key to be searched in resource bundles. | |
94 | * @param param1 an object to be used for param substitution. | |
95 | * @param param2 an object to be used for param substitution. | |
96 | * @param param3 an object to be used for param substitution. | |
97 | * @param param4 an object to be used for param substitution. | |
98 | */ | |
99 | 0 | public ActionException(String message, Object param1, Object param2, Object param3, Object param4) { |
100 | 0 | super(message, param1, param2, param3, param4); |
101 | } | |
102 | ||
103 | /** | |
104 | * Instantiates the class with a message and an array of parameters. The | |
105 | * providen message is used as a key and searched in available resource | |
106 | * bundles. If the message is not a valid resource key than it's used | |
107 | * directly. | |
108 | * | |
109 | * @param message the key to be searched in resource bundles. | |
110 | * @param params a set of objects for param substitution. | |
111 | */ | |
112 | 0 | public ActionException(String message, Object[] params) { |
113 | 0 | super(message, params); |
114 | } | |
115 | } |
|