delivered the opinion of the court.
The relator.who has, by the Hon. A. B. Fly, Chancellor of the Second Judicial District, been committed to six months’ imprisonment and sentenced to pay a fine of one thousand dollars for a contempt of court in violating an injunction issued to and served upon him, brings this writ of habeas corpus for the purpose of regaining his liberty. That he violated the injunction is not denied: the claim is that it was a nullity because the Chancery Court had no jurisdiction of the subject-matter sought to be enjoined; The relator had been a candidate at the late general election in this State for the office of chancery clerk of Yalobusha County. The registrars of the countjs adjudging that his opponent Brannon had been and that he had not been elected, delivered to Brannon the customary certificate of election. Thereupon the relator, within the time and in the mode prescribed by law (Acts 1878, p. 173), instituted before a justice of the peace the proper proceedings for contesting the election. A few days before the time fixed for the trial, Brannon sought and obtained from the Chancellor in vacation, upon grounds to be hereafter noted, an order enjoining and restraining the relator from prosecuting said suit. In violation of the injunction, the contest before the justice was proceeded with, and resulted in a verdict and judgment for the relator. It is for this conduct that he has been committed to jail, and it is the validity of the injunction that we are called upon to determine.
He who knowingly disregards or violates the orders of a court of general jurisdiction acts at his peril, and subjects himself, if the orders be lawful, to a punishment which ordinarily is left to the discretion of the tribunal whose authority has been defied, and from which no other court can release him. From consequences so severe there is usually but one method of escape, viz., by showing that the court whose commands have been disregarded was without jurisdiction of the person over whom, or the subject-matter over which, it assumed to exercise its authority. It will not avail the offender that the order was improvidently made upon insufficient grounds, and would be reversed by a higher tribunal; nor that the court issuing it was not justified in making the particular *445order that was disobeyed, but should have made another and a. different one. Neither can he urge that, upon the allegations contained in the application for the order, no facts were stated which made out a case against him or entitled the applicant to any relief. All these are matters to be considered by the court that makes the order, and by the tribunal which reviews its action on appeal; but they cannot be decided by the party himself. It is sufficient for him that a court, which by the laws of his country had the right to consider the subject, has passed its judgment upon it. If that judgment be wrong, he must ask its correction where it was rendered, or appeal to some higher power for relief. If, instead of doing this, he determines to disregard it and take the consequences, he can make those consequences innocuous only by showing that there was an inherent want of jurisdiction in the court to make any order whatever on the subject.
The want of jurisdiction here referred to is something widely different from the sense in which the words are used when we say that a court of law has no jurisdiction to settle a partnership account, or that a court of equity cannot entertain a suit sounding wholly in damages; because it frequently admits of doubt, in the inception of a litigation, whether the particular suit before the court should not have been instituted in some other tribunal; and while the court is considering this question and evolving the facts necessary to its determination, its authority must be respected and its orders obeyed. When we say that a person may safely disobey the commands of a court which is without jurisdiction to issue them, we mean either that it has failed to give, or is incapable for some reason of giving, legal notice to the person whose rights are to be affected, or that the subject-matter of the controversy is one which that court has no right to consider in any aspect whatever. Thus, if a court of law should assume jurisdiction of a suit for divorce, and issue an order for alimony pendente lite, the person against whom it was entered might safely disregard it. So, if a court of chancery should undertake to interfere in any way with a criminal prosecution, or to enjoin a convicted person from asking for an executive pardon, its action would be utterly null, and might be so treated by every one. These illustrations *446enable us to appreciate the difference between that class of cases where there may or may not be jurisdiction — according as a full development of the facts may show that relief is to be sought in the one forum or the other, and where consequently it is the duty of the court first applied to to have the facts developed, with a view of determining the question of jurisdiction — and that other class of cases where it is at once perceived, from a mere mention of the subject-matter of controversy, that no condition of facts can give jurisdiction. In the one case, the orders of the court must be respected. In the other, they may be treated as the impotent commands of a private person masquerading in the guise of judicial authority. Let us test the case at bar by these principles, and see under which class it falls.
The relator had instituted, in the mode and manner and before the tribunal specially constituted for that purpose, a proceeding to test the question whether he or his opponent had received the greater number of legal votes. He was enjoined from prosecuting that contest until such time had elapsed that a decision in his favor would be immediately succeeded by a term of the Circuit Court of the county, so that his enjoyment of the profits of the office would be short-lived if there should be a reversal in the higher court. The grounds of the application were that the justice of the peace before whom the case was to be tried was a political supporter and a bitter partisan of the relator; that the constable of the court was his brother; that a judgment in his favor would certainly be rendered without regard to the merits of the contest; and that, inasmuch as an appeal did not by the terms of the statute operate as a supersedeas, he would, if the case was tried at once, enjoy for a period of five or six months the emoluments of an office to which he had not been elected. It is at once perceived that these grounds were wholly insufficient to justify the issuance of the injunction or any other relief whatever. That a judge is the political or personal friend of a litigant constitutes no ground for enjoining the prosecution of a suit before him, even where he is the sole trier of the facts, and still less so where, as in this case, the issue was to be determined by a jury; nor does the fact *447that the jury is to be summoned by a sheriff or constable who is related to the opposing party add any strength to the objections to proceeding with the trial. It is quite manifest that the injunction was improvidently granted, and doubtless would have been, and certainly should have been, dissolved upon motion. This, however, as we have seen, affords no excuse for violating it if under any possible state of facts its issuance would have been within the power of the court. The question presented, therefore, is whether, under our system of laws, there is any jurisdiction in a court of equity, under any circumstances, to enjoin the prosecution of a case of contested election. If the ultimate object of the injunction be to withdraw from the special tribunal created by the statute the determination of the contest, and to give to the Chancery Court the settlement of the question as to who has been elected, it is plainly beyond the jurisdiction of the court. Neither by the principles of the English court of chancery nor by our statutes can courts of equity take cognizance of such subjects. Such contests partake as much of public as of private right, and belong rather to the political than to the judicial department of the government; and in so far as they involve the property rights of the contestants to the powers and emoluments of the office, they present purely legal issues, determinable in a court of law. We are not aware that, even in States where there exist no statutory provisions for the speedy settlement of such contests, they have ever been held to fall within the jurisdiction of courts of equity, and certainly it is well settled that when statutory regulations on the subject have been adopted, the means provided by the statute are exclusive of all others. Hulseman v. Rems, 41 Penn. St. 396; Dickey v. Reed, 78 Ill. 261; McCrary’s Law of Elections, §§ 318-458, and authorities cited.
But the bill for an injunction in this case did not seek to draw to the Chancery Court a settlement of the questions involved in the proceedings before the justice, but only asked, for special reasons, that those proceedings might be temporarily stayed. Conceding, then, that a court of chancery cannot try a contested election case, may it enjoin a trial of such a case by the tribunal which alone has authority to try it? The power of the Chancery Court to enjoin actions at law is ancient *448and indisputable; and hence it is argued that, as it has this power, it must necessarily have authority to determine whether a particular action should be enjoined or not; that while it is determining this question, it has the right to make all necessary preliminary orders, and to punish those who violate them. If it be, indeed, a question whether an injunction shall issue in the special case in hand, the position is indisputable, and it is undoubtedly true that he who disobeys an order issued while the court is considering such a question is punishable even though the order be, as said by the Court of Appeals of New York, “ hastily, improvidently, or wickedly granted.” Erie Railway Co. v. Ramsey, 45 N. Y. 637, 644. But a very different question is presented when the issue is not whether the court has authority to enjoin the special action at law complained of, but whether it can enjoin any action whatever belonging to a general class of actions; for while it is true that most actions at law may be enjoined, there are large classes of them as to which no state of facts will justify the interposition of a court of equity. It is well settled that criminal prosecutions, whether by indictments or information, actions of mandamus, and writs of prohibition, can, under no circumstances, be enjoined by a court of chancery. 2 Story Eq. Jur. § 893. It is equally clear that under our statutes prescribing the method of contesting before the legislature the rights of the members to their seats (Code 1871, §§ 388, 389), or of contesting before the same body the result of elections for governor and other State officers (Code 1871, § 391), the Chancery Court could not enjoin the prosecution of such contests, and if it assumed to do so, its orders might be disobeyed with impunity. It is thus seen that, notwithstanding the general jurisdiction of a court of equity to enjoin actions at law, the power is not universal, and that there are large classes of actions where no such power exists, and where, if it is attempted to be exercised, its acts will be mere brutumful-men, conferring no rights if respected, and imposing no penalties if disobeyed. Whether contested election cases involving the right to county offices are of this character, under our laws, must be determined by an inspection of the statutes and a consideration of the objects intended to be subserved by them.
*449Our general elections for county officers take place biennially on tlie first Tuesday in November. Tlie officers cbosen at them are installed in office on the first Monday in January thereafter. The boards of registrars of each county are required to assemble at their respective county seats by twelve o’clock on the second day after the election, count the votes, and deliver to the candidates shown by the ballots to have received the largest number of votes, a certificate of that fact, and immediately to forward to the Secretary of State, at the capitol, an additional certificate of the result as to every candidate voted for at the election. Code 1871, § 877. Any person dissatisfied with the result as thus announced may, within twenty days after the election, file his petition for a contest before any justice of the peace of the county. The justice shall thereupon issue a summons to the party holding the certificate, returnable in five days, and shall make up an issue to be tried by a jury as to which candidate has received the greatest number of legal votes, and no other question is permitted to be submitted to the jury. Each party shall have ten peremptory challenges besides challenges for cause. If the jury shall find against the person holding the certificate of the registrars, the justice shall enter up a judgment in his favor, and forthwith forward a duly certified transcript of the proceedings to the governor, who shall at once issue a commission to the person found by the jury to have been elected. No court can issue a writ of certiorari to review said proceedings, and though the unsuccessful party may appeal to the next term of the Circuit Court, and there have a trial de novo, such appeal shall not operate as a supersedeas. Acts 1878, p. 173.
The manifest purpose of these provisions is to prescribe a method of determining contests growing out of county elections, which by its simplicity, convenience of access by the parties, and celerity of proceeding shall culminate in a verdict ascertaining the result of the election before the period fixed by law for the installation of the officer. No court by writ of certiorari can transfer the proceedings to any other tribunal, and though the right of appeal is preserved, it does not prevent the installation of the successful party. The right given to the contestant of choosing the justice before whom he will inaugurate his *450contest, and the denial of a supersedeas to Ms unsuccessful opponent, give the former a great advantage ; but we cannot inquire into the wisdom of the law, and it is evident that these provisions sprang from the anxiety of the lawgiver to ensure such speedy adjudication of the case that, by the first Monday in January, no doubt should exist as to the person entitled to qualify. The public interest in this question is to override the private interest of the parties. If a court of chancery is at liberty to interrupt the proceedings by writs of injunction, the whole scheme is defeated. Even a temporary injunction might produce complications difficult, if not impossible, of solution. The tribunal created by the statute is a special one, pro re nata, unknown to our ordinary jurisprudence, and must die with the occasion that brought it into being. The justice of the peace presides, not by virtue of his functions as such, but only because designated by the statute. The court when organized is not a justice’s court. It has no terms. It cannot continue the case to a distant day or even adjourn its sessions, except from day to day as the exigencies of the trial may demand. If once dispersed, how is it to be reassembled ? If shattered by the weight of a Chancellor’s injunction, how are its several parts to be reunited ? If in the case at bar, after the court had been opened and the jury sworn, the injunction prayed had been made perpetual, how could there ever have been an investigation of the question as to who had received the highest number of legal votes ? These objections, if not insuperable (and we are not to be understood as denying the power of the justice to reconvene the jury under any circumstances), suggest the great practical inconvenience of permitting the interference of a court of equity.
Our conclusion is, that the jurisdiction of the special tribunal created by the statute for the determination of an election contest is exclusive; that when such tribunal has been organized within the time and in the manner prescribed, it cannot be interfered with by any other court, so long as it confines itself to the matter confided to it by the statute. If it has not been so organized, and if the defect in its organization is so fatal as to leave it without jurisdiction, or if, being properly organized, it is exceeding its jurisdiction in its conduct of *451the trial, the only remedy is by the common-law writ of prohibition, issuing out of some superior common-law court; and this writ can be invoked only upon grounds which are jurisdictional in their character. It follows from these views that the injunction issued by the Chancellor was a nullity, and that the relator did not subject himself to punishment in disregarding it. The action of the circuit judge, dismissing the writ of habeas corpus and remanding the relator to confinement, is reversed, and an order will be entered here for his discharge. ' So ordered.