Add missing @throws annotation