better zoom proctoring error handling
This commit is contained in:
parent
dc330c0eed
commit
6fe11287f4
2 changed files with 6 additions and 0 deletions
|
@ -364,6 +364,7 @@ public class ExamProctoringRoomServiceImpl implements ExamProctoringRoomService
|
|||
examId,
|
||||
connectionToken,
|
||||
e);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue