Se maneja el control de excepciones en ServiceUzyTavZonaDetalle

parent f764781a
......@@ -58,7 +58,10 @@ public class ServiceUzyTavZonaDetalle implements IServiceUzyTavZonaDetalle {
try {
List<ModelUzyTavZonaDetalle> entities = daoUzyTavZonaDetalle.obtenerZonaDetallePorPrograma(programaId);
return mapper.entitiesToDtos(entities);
} catch (Exception ex) {
} catch (IllegalArgumentException ex) {
throw ex;
}
catch (Exception ex) {
throw new RuntimeException("Error al listar los registros: " + ex.getMessage());
}
}
......@@ -73,7 +76,10 @@ public class ServiceUzyTavZonaDetalle implements IServiceUzyTavZonaDetalle {
try {
List<ModelUzyTavZonaDetalle> entities = daoUzyTavZonaDetalle.obtenerZonaDetallePorProyec(proyecID);
return mapper.entitiesToDtos(entities);
} catch (Exception ex) {
} catch (IllegalArgumentException ex) {
throw ex;
}
catch (Exception ex) {
throw new RuntimeException("Error al listar los registros: " + ex.getMessage());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment