CourseUserLimitExceededException¶
- class CourseUserLimitExceededException[source]¶
Exception raised when a course user limit is exceeded.
- code: Literal['COURSE_USER_LIMIT_EXCEEDED']¶
A unique code identifying the kind of error that occurred.
- user_type: Literal['staff', 'student']¶
Whether the limit that was reached applies to students or staff.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- user_id: int | None¶
The id of the user the check failed for, or None when it did not concern a specific user.