quiz_get_question_types() should throw exception instead of set error message.