diff --git a/lib/taskana-core/src/main/java/pro/taskana/task/internal/TaskServiceImpl.java b/lib/taskana-core/src/main/java/pro/taskana/task/internal/TaskServiceImpl.java index 72eb4dad3..31a56d8ee 100644 --- a/lib/taskana-core/src/main/java/pro/taskana/task/internal/TaskServiceImpl.java +++ b/lib/taskana-core/src/main/java/pro/taskana/task/internal/TaskServiceImpl.java @@ -184,15 +184,12 @@ public class TaskServiceImpl implements TaskService { @Override public Task forceCancelClaim(String taskId) - throws TaskNotFoundException, - InvalidTaskStateException, - InvalidOwnerException - try { - return this.cancelClaim(taskId, true); - } catch (InvalidOwnerException e) { - throw new SystemException( - "this should not have happened. You've discovered a new bug!", e); - } + throws TaskNotFoundException, InvalidTaskStateException, NotAuthorizedOnWorkbasketException { + try { + return this.cancelClaim(taskId, true); + } catch (InvalidOwnerException e) { + throw new SystemException("this should not have happened. You've discovered a new bug!", e); + } } @Override