There shall be four classes of election offenses consisting of all offenses arising under this chapter, and such other offenses as are specified by law.