Changed the exception class to be more specific and added a comment.