throw exceptions when distribution name is invalid