Acts or omissions to which a pecuniary penalty is attached, recoverable by action by a person for his own use, or for the use, in whole or in part, of the state, or of a county or municipal corporation, are not public offenses within the meaning of this Code.
Ala. Code § 1-1-6 (1975)