The election of any person declared elected to the office of Governor, Secretary of State, Auditor, Treasurer, Attorney General, Commissioner of Agriculture and Industries, Public Service Commissioner, senator or representative in the Legislature, justices of the Supreme Court, judges of the courts of appeals, judge of the circuit court or district court, or any office which is filled by the vote of a single county, or to the office of constable may be contested by any person who was at the time of either of the elections a qualified elector for any of the following causes:
(1) Malconduct, fraud, or corruption on the part of any inspector, clerk, returning officer, canvassing board, or other person.
(2) When the person whose election to office is contested was not eligible thereto at the time of such election.
(3) On account of illegal votes.
(4) On account of the rejection of legal votes.
(5) Offers to bribe, bribery, intimidation, or other malconduct calculated to prevent a fair, free, and full exercise of the elective franchise.
(6) The results of a recount conducted under Section 17-16-20 name as a winner a person other than the person initially certified.