Neither. Government Code section 21.002, Contempt of Court, does not classify contempt at all, although the punishments are consistent with a misdemeanor rather than a felony, except that in cases a contemner may be confined for a period not exceeding 18 months.