[TASK] Add missing @throws annotations

Change-Id: Ifcce344bf1f20de22fd56d820867e406ff855602
Reviewed-on: https://review.typo3.org/31365
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters