exercise.class: Report invalid course IDs

Throw an expection when the given construction parameter is not a valid
course ID.
exercise.class: Explain the delete method