Every agreement by which any one is restrained from exercising a lawful profession, trade or business of any kind, is to that extent void. Exceptions. 1 Saving a agreement not to carry on business of which goodwill is sold. One who sells the goodwill of a business may agree with the buyer to refrain from carrying on a similar business, within ...