230231232233234235236237238239240
if (Validator.isNull(title)) { throw new QuestionTitleException(); } else if (Validator.isNull(description)) { throw new QuestionDescriptionException(); } if (choices.size() < 2) { throw new QuestionChoiceException(); }