Incluir lanzamiento de excepción
This commit is contained in:
@@ -64,7 +64,7 @@ public class ProcesadorFicheroXML {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private JsonNode cargarArbolXMLFichero() {
|
private JsonNode cargarArbolXMLFichero() throws FormacionException {
|
||||||
|
|
||||||
JsonNode nodoRaiz = null;
|
JsonNode nodoRaiz = null;
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ public class ProcesadorFicheroXML {
|
|||||||
nodoRaiz = xmlMapper.readTree(fichero);
|
nodoRaiz = xmlMapper.readTree(fichero);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
throw new FormacionException("Error al leer el fichero con los ciclos formativos.", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nodoRaiz;
|
return nodoRaiz;
|
||||||
|
|||||||
Reference in New Issue
Block a user