svn-gvsig-desktop / branches / v10 / extensions / extI18n / src / org / gvsig / i18n / impl / LocaleFileNameRequiredException.java @ 26430
History | View | Annotate | Download (1.91 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Gobernment (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 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2009 {DiSiD Technologies} {New extension for installation and update of text translations}
|
26 |
*/
|
27 |
package org.gvsig.i18n.impl; |
28 |
|
29 |
import org.gvsig.i18n.I18nException; |
30 |
|
31 |
/**
|
32 |
* Exception for errors installing a locale or locales from an import file.
|
33 |
*
|
34 |
* @author <a href="mailto:dcervera@disid.com">David Cervera</a>
|
35 |
*/
|
36 |
public class LocaleFileNameRequiredException extends I18nException { |
37 |
|
38 |
private static final long serialVersionUID = 8426119666919876086L; |
39 |
|
40 |
private static final String MSG = "A line in the CSV file with the locales to install or update does not contain the file name"; |
41 |
|
42 |
private static final String KEY = "_LocaleFileNameRequiredException"; |
43 |
|
44 |
private String line; |
45 |
|
46 |
public LocaleFileNameRequiredException(String line) { |
47 |
super(MSG, KEY);
|
48 |
this.line = line;
|
49 |
} |
50 |
|
51 |
public LocaleFileNameRequiredException(String line, Throwable cause) { |
52 |
super(MSG, KEY, cause);
|
53 |
this.line = line;
|
54 |
} |
55 |
|
56 |
public String getLocalizedMessage() { |
57 |
return super.getLocalizedMessage() + ": " + line; |
58 |
} |
59 |
} |