Possession in county courthouse or state capitol--Exceptions. The provisions of § 22-14-23 do not apply to: (1) The lawful performance of official duties by an officer, agent, or employee of the United States, the state, political subdivision thereof, or a municipality, who is authorized by law to engage in or supervise the prevention, detection, investigation, or prosecution of any violation of law or who is an officer of the court; (2) The possession of a firearm or other dangerous weapon by a judge or magistrate; (3) The possession of a firearm or other dangerous weapon by a federal or state official or by a member of the armed services, if provided such possession is authorized by law; (4) (a) The possession of a concealed pistol in the state capitol by a qualified law enforcement officer or a qualified retired law enforcement officer in accordance with the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. § 926B-C; and (b) The possession of a knife in the state capitol by a person meeting the requirements of this subdivision, provided the length of the knife blade, when measured in a straight line extending from the tip of the blade to the forward-most aspect of the handle does not exceed four inches; (5) (a) The possession of a concealed pistol anywhere in the state capitol, other than in the Supreme Court chamber or other access-controlled private office under the supervision of security personnel, by any person not otherwise referenced in this section, provided: (a)(i) The person possessing the concealed pistol holds an enhanced permit issued in accordance with § 23-7-53; 26 Catchlines are not law. (§ 2-16-13.1) (b)(ii) At least twenty-four hours prior to initially entering the state capitol with a concealed pistol, the person notifies the superintendent of the Division of Highway Patrol, orally or in writing, that the person intends to possess a concealed pistol in the state capitol; (c)(iii) The notification required by this subdivision includes the date on which or the range of dates during which the person intends to possess a concealed pistol in the state capitol, provided the range of dates may not exceed thirty consecutive days; and (d)(iv) The notification required by the this subdivision may be renewed, as necessary and without limit; and (b) The possession of a knife anywhere in the state capitol, other than in the Supreme Court chamber or other access-controlled private office under the supervision of security personnel, by any person not otherwise referenced in this section, provided the length of the knife blade, when measured in a straight line extending from the tip of the blade to the forward-most aspect of the handle does not exceed four inches; and (6) The lawful carrying of a firearm or other dangerous weapon in a county courthouse incident to a hunter safety or a gun safety course or for any other lawful purposes. 18