public void ValidateName(string name) { if (!IsValidName (name)) throw new Exception ("The name is not valid."); }