The provisions of this chapter shall not apply to or be enforced against: (1) Any vehicle of the city while engaged in necessary public business. (2) Excavations or repairs of streets by or on behalf of the city, county, or state. (3) Any activity performed by or on behalf of the city, county, or state in the interest of public health, safety, and welfare.