§51-22. Any officer violating any of the provisions of this chapter, except as herein otherwise provided, is guilty of a misdemeanor.