better zoom proctoring error handling

This commit is contained in:
anhefti 2022-03-30 12:55:42 +02:00
parent dc330c0eed
commit 6fe11287f4
2 changed files with 6 additions and 0 deletions

View file

@ -364,6 +364,7 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService
examId,
connectionToken,
e);
return null;
}
}

View file

@ -555,6 +555,11 @@ public class ZoomProctoringService implements ExamProctoringService {
credentials,
roomName);
final int statusCodeValue = createUser.getStatusCodeValue();
if (statusCodeValue >= 400) {
throw new RuntimeException("Failed to create new Zoom user for room: " + createUser.getBody());
}
final UserResponse userResponse = this.jsonMapper.readValue(
createUser.getBody(),
UserResponse.class);