A.
In this article, "violation of this Code" means any of the following:
(1)
Doing an act that is prohibited or made or declared unlawful, an offense or a misdemeanor by ordinance or by rule or regulations authorized by ordinance.
(2)
Failure to perform an act that is required to be performed by ordinance or by rule or regulations authorized by ordinance.
(3)
Failure to perform an act if the failure is prohibited or made or declared unlawful, an offense or a misdemeanor by ordinance or by rule or regulations authorized by ordinance.
B.
In this article, "violation of this Code" does not include the failure of a County officer or a County employee to perform an official duty unless it is provided that failure to perform the duty is to be punished as provided in this article.