A violation of any of the provisions of §§41-4-108 —41-4-116, whether by the sheriff or by any person selected as jailer or guard by the sheriff, is a Class A misdemeanor.