Add more catchs ..

This commit is contained in:
Paulo Gustavo Veiga 2013-03-24 19:28:20 -03:00
parent c12b73c1ff
commit 0188e15a92

View File

@ -134,6 +134,9 @@ public class AdminController extends BaseController {
public void purgeDB(@RequestParam(required = true) Integer minUid, @RequestParam(required = true) Integer maxUid, @RequestParam(required = true) Boolean apply) throws WiseMappingException, UnsupportedEncodingException { public void purgeDB(@RequestParam(required = true) Integer minUid, @RequestParam(required = true) Integer maxUid, @RequestParam(required = true) Boolean apply) throws WiseMappingException, UnsupportedEncodingException {
for (int i = minUid; i < maxUid; i++) { for (int i = minUid; i < maxUid; i++) {
try {
System.out.println("Looking for user:" + i); System.out.println("Looking for user:" + i);
final User user = userService.getUserBy(i); final User user = userService.getUserBy(i);
if (user != null) { if (user != null) {
@ -141,8 +144,6 @@ public class AdminController extends BaseController {
if (user.getEmail().contains("wisemapping")) { if (user.getEmail().contains("wisemapping")) {
continue; continue;
} }
try {
// Iterate over the list of maps ... // Iterate over the list of maps ...
final List<Collaboration> collaborations = mindmapService.findCollaborations(user); final List<Collaboration> collaborations = mindmapService.findCollaborations(user);
for (Collaboration collaboration : collaborations) { for (Collaboration collaboration : collaborations) {
@ -165,6 +166,7 @@ public class AdminController extends BaseController {
} }
} }
} }
}
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} catch (WiseMappingException e) { } catch (WiseMappingException e) {
@ -173,7 +175,6 @@ public class AdminController extends BaseController {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
} }
} }
}
} }