Except when a person has been appointed to office pursuant to Section 10229 because no person had been nominated to office, proceedings may not be commenced against an officer of a city, county, special district, school district, community college district, or county board of education in the event of one or more of any of the following:
Ca. Elec. Code § 11007