From 5d5ff8d9c17903e60d6ce8ced6dc3843ff161038 Mon Sep 17 00:00:00 2001 From: Julia Hansbrough Date: Tue, 23 Sep 2014 12:22:59 +0000 Subject: [PATCH] Docs --- common/djangoapps/student/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 7ef8e5a945..269dae81d3 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -813,6 +813,11 @@ class CourseEnrollment(models.Model): may include "audit", "verified_id", etc. Please don't use it until we have these mapped out. + Exceptions that can be raised: NonExistentCourseError, + EnrollmentClosedError, CourseFullError, AlreadyEnrolledError. All these + are subclasses of CourseEnrollmentException if you want to catch all of + them in the same way. + It is expected that this method is called from a method which has already verified the user authentication.