Move Exception definitions into errors.py
Validate course.yaml metadata in course self-test