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
|
@Override
|
||||||
public Task forceCancelClaim(String taskId)
|
public Task forceCancelClaim(String taskId)
|
||||||
throws TaskNotFoundException,
|
throws TaskNotFoundException,
|
||||||
InvalidOwnerException,
|
InvalidTaskStateException,
|
||||||
NotAuthorizedOnWorkbasketException,
|
InvalidOwnerException
|
||||||
InvalidTaskStateException {
|
try {
|
||||||
return this.cancelClaim(taskId, true);
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue