(b) This section does not prohibit the following individuals from carrying a weapon:
(1) an officer of the State, or of any county or municipal corporation of the State, who is entitled or required to carry the weapon as part of the officer's official equipment, or by any conservator of the peace, who is entitled or required to carry the weapon as part of the conservator's official equipment, or by any officer or conservator of the peace of another state who is temporarily in this State;
(2) a special agent of a railroad;
(3) a holder of a permit to carry a handgun issued under Title 5, Subtitle 3 of the Public Safety Article; or
(4) an individual who carries the weapon as a reasonable precaution against apprehended danger, subject to the right of the court in an action arising under this section to judge the reasonableness of the carrying of the weapon, and the proper occasion for carrying it, under the evidence in the case.
(c) (1) A person may not wear or carry a dangerous weapon of any kind concealed on or about the person.
(2) A person may not wear or carry a dangerous weapon, chemical mace, pepper mace, or a tear gas device openly with the intent or purpose of injuring an individual in an unlawful manner.