Skip to content
Snippets Groups Projects
Commit aaa78696 authored by Brian Major's avatar Brian Major
Browse files

nep110 - more in debug mode for ac web service

parent 06a8f00d
No related branches found
No related tags found
No related merge requests found
...@@ -132,56 +132,56 @@ public abstract class GroupsAction ...@@ -132,56 +132,56 @@ public abstract class GroupsAction
} }
catch (AccessControlException e) catch (AccessControlException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "Permission Denied"; String message = "Permission Denied";
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(403, message); sendError(403, message);
} }
catch (IllegalArgumentException e) catch (IllegalArgumentException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = e.getMessage(); String message = e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(400, message); sendError(400, message);
} }
catch (MemberNotFoundException e) catch (MemberNotFoundException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "Member not found: " + e.getMessage(); String message = "Member not found: " + e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(404, message); sendError(404, message);
} }
catch (GroupNotFoundException e) catch (GroupNotFoundException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "Group not found: " + e.getMessage(); String message = "Group not found: " + e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(404, message); sendError(404, message);
} }
catch (UserNotFoundException e) catch (UserNotFoundException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "User not found: " + e.getMessage(); String message = "User not found: " + e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(404, message); sendError(404, message);
} }
catch (MemberAlreadyExistsException e) catch (MemberAlreadyExistsException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "Member already exists: " + e.getMessage(); String message = "Member already exists: " + e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(409, message); sendError(409, message);
} }
catch (GroupAlreadyExistsException e) catch (GroupAlreadyExistsException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
String message = "Group already exists: " + e.getMessage(); String message = "Group already exists: " + e.getMessage();
this.logInfo.setMessage(message); this.logInfo.setMessage(message);
sendError(409, message); sendError(409, message);
} }
catch (UnsupportedOperationException e) catch (UnsupportedOperationException e)
{ {
log.debug(e); log.debug(e.getMessage(), e);
this.logInfo.setMessage("Not yet implemented."); this.logInfo.setMessage("Not yet implemented.");
sendError(501); sendError(501);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment