Surround NotAuthorizedException with try catch #2162
This commit is contained in:
parent
62c2defeff
commit
06b7404ecd
|
@ -185,10 +185,14 @@ public class TaskServiceImpl implements TaskService {
|
|||
@Override
|
||||
public Task forceCancelClaim(String taskId)
|
||||
throws TaskNotFoundException,
|
||||
InvalidOwnerException,
|
||||
NotAuthorizedOnWorkbasketException,
|
||||
InvalidTaskStateException {
|
||||
return this.cancelClaim(taskId, true);
|
||||
InvalidTaskStateException,
|
||||
InvalidOwnerException
|
||||
try {
|
||||
return this.cancelClaim(taskId, true);
|
||||
} catch (NotAuthorizedOnWorkbasketException e) {
|
||||
throw new SystemException(
|
||||
"this should not have happened. You've discovered a new bug! :D", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue