As an addition to Punk D's and Gaspo's comments, Contempt of Court would by definition fall under these possible situations:
1.) Contempt of Court in the form of behavior that opposes or defies the authority, justice, and dignity of the court;
2.) Civil contempt involving the willful and intentional failure to perform an act that is ordered by a court as a means to enforce the rights of individuals or to secure remedies for parties in a civil action.
3.) Direct Contempt is as an act that occurs in the presence of the court and is intended to embarrass or engender disrespect for the court or to otherwise disrupt the proceedings through behavior before the court.
A Rule 11 violation (Frivolous and Groundless Suits at Law) which would be illustrated best by a case like Windhorst v. Mark Stone, Nick Trombetta and State Farm Mutual Automobile Insurance Company, Civil Action 09CV1216, Adams District Court. To wit:
The decision of the court stated that the “plaintiff did not have valid claims against State Farm to begin with. Plaintiff’s counsel did nothing more than try to bully State Farm into paying policy limits(etc.,,,)”. “At the outset of the litigation against State Farm, counsel knew that State Farm had neither breached the insurance contract nor did so in bad faith by engaging in reprehensible claims processing practices. The only person guilty of reprehensible claims processing practices was plaintiff’s counsel.” “...all of plaintiff’s claims against State Farm lacked substantial justification, in that they all were substantially groundless, substantially frivolous, and substantially vexatious. Therefore, an award of attorney fees against plaintiff’s counsel and in favor of State Farm is appropriate under § 13-17-102(4).” The court also found that “plaintiff’s counsel filed claims against State Farm in violation of Rule 11.”
Now, given that the AG is forced to prosecute every case (and thereby denied any prosecutorial latitude other than modifying the charges since it is the prosecutor that is actually bringing the charges in response to a complaint) then it should be incumbent upon someone to take responsibility whose case is determined frivolous in a court decision dismissing a given case, and therefore be charged with a Rule 11 type violation.
Of course, whether or not a charge is frivolous goes beyond a judge or prosecutor simply claiming a charge is frivolous - it must include a determination bases upon adherence (or not as the case may be) to a specific set of rules of evidence.