Revision 29872 trunk/extensions/extWMS/src/com/iver/cit/gvsig/wmc/WebMapContext.java
WebMapContext.java | ||
---|---|---|
281 | 281 |
* If no version was recognized then will parse the default one which is supposed |
282 | 282 |
* to be the best available. |
283 | 283 |
* @param file |
284 |
* @throws ImportMapContextException |
|
284 | 285 |
*/ |
285 |
private void parseDefaultVersion(File file) { |
|
286 |
private void parseDefaultVersion(File file) throws ImportMapContextException {
|
|
286 | 287 |
parse1_1_0(file); |
287 | 288 |
} |
288 | 289 |
|
... | ... | |
320 | 321 |
* v1.1.0 it can be used to read files belonging to 1.0.0 as well. |
321 | 322 |
* @param file, the web map context file. |
322 | 323 |
*/ |
323 |
private void parse1_1_0(File file) { |
|
324 |
private void parse1_1_0(File file) throws ImportMapContextException{
|
|
324 | 325 |
try { |
325 | 326 |
FileReader fr; |
326 | 327 |
try |
... | ... | |
455 | 456 |
} |
456 | 457 |
parser.require(KXmlParser.END_DOCUMENT, null, null); |
457 | 458 |
} |
459 |
} catch (ImportMapContextException e){ |
|
460 |
throw e; |
|
458 | 461 |
} catch (Exception e) { |
459 | 462 |
NotificationManager.addError(PluginServices.getText(this, "map_context_file_error"),e); |
460 | 463 |
e.printStackTrace(); |
Also available in: Unified diff