(a) Contemptuous or insolent behavior toward such magistrate while engaged in the trial of a case or in any other judicial proceeding;
(b) Any breach of the peace, willful disturbance, or indecent conduct in the presence of such magistrate while so engaged, or so near as to obstruct or interrupt the proceedings;
(c) Violence or threats of violence to such magistrate, or any officer, juror, witness, or party going to, attending, or returning from, any judicial proceeding before the court with respect to anything done or to be done in the course of such proceeding;
(d) Flagrant misbehavior of any officer of the county acting in his official capacity with respect to any action or judicial proceeding had or pending before the court, or any process, judgment, order or notice therein; or
(e) Willful resistance by an officer of the court, juror, witness, party or other person to any lawful process or order of the court.
A magistrate may, if necessary, issue a warrant of arrest for such person, who shall be given an opportunity to be heard. In the event such person is adjudged guilty of contempt, the person may be fined not more than fifty dollars for the first offense. For a second offense pertaining to the same matter the person may be fined not more than one hundred dollars. For the third or any subsequent offense pertaining to the same matter the person may be fined not more than one hundred dollars, or imprisoned in the county jail not more than ten days, or both fined and imprisoned.
An appeal to the circuit court of such conviction shall lie as in criminal cases.