Revision 526 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/persistence/exception/PersistenceValidateExceptions.java
PersistenceValidateExceptions.java | ||
---|---|---|
1 | 1 |
/* gvSIG. Geographic Information System of the Valencian Government |
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
2 |
*
|
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
|
4 |
* of the Valencian Government (CIT)
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or
|
|
7 |
* modify it under the terms of the GNU General Public License
|
|
8 |
* as published by the Free Software Foundation; either version 2
|
|
9 |
* of the License, or (at your option) any later version.
|
|
10 |
*
|
|
11 |
* This program is distributed in the hope that it will be useful,
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
* GNU General Public License for more details.
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License
|
|
17 |
* along with this program; if not, write to the Free Software
|
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
19 |
* MA 02110-1301, USA.
|
|
20 |
*
|
|
21 |
*/
|
|
22 | 22 |
|
23 | 23 |
/* |
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2009 IVER T.I {{Task}} |
|
26 |
*/ |
|
24 |
* AUTHORS (In addition to CIT):
|
|
25 |
* 2009 IVER T.I {{Task}}
|
|
26 |
*/
|
|
27 | 27 |
|
28 | 28 |
/** |
29 | 29 |
* |
... | ... | |
34 | 34 |
|
35 | 35 |
/** |
36 | 36 |
* @author jmvivo |
37 |
* |
|
37 |
*
|
|
38 | 38 |
*/ |
39 | 39 |
public class PersistenceValidateExceptions extends PersistenceException { |
40 | 40 |
|
... | ... | |
42 | 42 |
* |
43 | 43 |
*/ |
44 | 44 |
private static final long serialVersionUID = 3418942854055550877L; |
45 |
|
|
45 |
|
|
46 | 46 |
public PersistenceValidateExceptions(String name) { |
47 |
super( |
|
48 |
"Errors found validating '%(name)'.", |
|
49 |
"_errors_found_validating_XnameX", |
|
50 |
serialVersionUID |
|
51 |
); |
|
47 |
super("Errors found validating '%(name)'.", |
|
48 |
"_errors_found_validating_XnameX", serialVersionUID); |
|
52 | 49 |
this.setValue("name", name); |
53 | 50 |
} |
54 |
|
|
51 |
|
|
55 | 52 |
public PersistenceValidateExceptions(String name, List exceptions) { |
56 | 53 |
this(name); |
57 | 54 |
this.addAll(exceptions); |
58 | 55 |
} |
59 | 56 |
|
60 | 57 |
public PersistenceValidateExceptions(List exceptions) { |
61 |
super( |
|
62 |
"Errors found validating persistent state.", |
|
63 |
"_errors_found_validating_persistent_state", |
|
64 |
serialVersionUID |
|
65 |
); |
|
58 |
super("Errors found validating persistent state.", |
|
59 |
"_errors_found_validating_persistent_state", serialVersionUID); |
|
66 | 60 |
this.addAll(exceptions); |
67 | 61 |
} |
68 | 62 |
} |
Also available in: Unified diff