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,
|
examId,
|
||||||
connectionToken,
|
connectionToken,
|
||||||
e);
|
e);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -555,6 +555,11 @@ public class ZoomProctoringService implements ExamProctoringService {
|
||||||
credentials,
|
credentials,
|
||||||
roomName);
|
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(
|
final UserResponse userResponse = this.jsonMapper.readValue(
|
||||||
createUser.getBody(),
|
createUser.getBody(),
|
||||||
UserResponse.class);
|
UserResponse.class);
|
||||||
|
|
Loading…
Reference in a new issue