specially concurring in the judgment:
I concur with Justice Whitson in the opinion that the judgment of the district court should be affirmed, but for reasons which differ from those from Avliich his conclusions are drawn. It has been urged that the judge of the district court who tried this case at chambers, erred in counting the ballots cast for the respective parties, with a view to determine therefrom which was duly elected, and this proceeding has been animadverted upon with considerable severity; but as the court is unanimous in the opinion that the record does not present this question, no consideration can properly be given to it, and it need not therefore be discussed.
The only questions presented by the record are: 1. Whether the court had jurisdiction of the subject-matter; 2. Whether the complaint states facts sufficient to consti*446tute a cause of action. To both of these questions my answer must be in the affirmative.
Jurisdiction of a subject-matter, in its general sense, is defined to be a power constitutionally conferred upon a judge or magistrate to take cognizance of and decide causes according to law, and to carry his sentence into execution. (6 Pet. 591; 9 Johns 239.) It is the law which gives jurisdiction; the consent of parties can not therefore confer it in a matter which the law excludes. (1 Nott & M. 192; 3 McCord, 280; Breese, 32.) The district courts of this territory are courts of original general jurisdiction, made such by the organic act, and may take cognizance of all cases in chancery, as well as under the common law, and of such as are provided for by the territorial legislature. It can not be doubted that these courts are clothed with authority to try the title to an office. This authority is expressly given in chapter 4 of the civil practice act, and is supported by the case of the People v. Pease, 27 N. Y. 45, decided by the court of appeals of the state of New York in 1863. The object of the statute evidently is to test the right of any one or more persons who intrude into or unlawfully hold or exercise a public office as against the people, or another lawfully entitled to it, as well as the respective rights of several pérsons claiming to be entitled to it. The statute is a substitute for the common law writ of quo luarranto, which was in the nature of a writ of right for the king, against him who claims or usurps any office, franchise, or liberty,, to inquire by what authority he supports his claim in order to determine the right, but the process under it, unlike the proceeding by quo warranto, is a civil process.
It is urged with great earnest, notwithstanding, that because the complaint shows no user, the court had no jurisdiction of the subject-matter, and that the judgment is coram non judice, and therefore void. I must confess that this is a novel mode of determining a question of this character. As has been shown, jurisdiction of a subject-matter is conferred by law. Neither consent of parties, the efflux of time, nor the happening of any contingency will give it; and yet *447it is seriously urged, that because no usurpation or user of the office is alleged, the court exceeded its jurisdiction in entertaining the action. Numerous supposed cases have been put to prove the soundness of this position as instances. “As well might a court say, that because justices of the peace have by law the exclusive right to hear, try, and determine all common assaults and batteries, that if a person is arrested and brought before a justice of the peace, charged with an offense not committed, but with an assault that he may possibly commit two months hence; that such justice may legally retain such a case; that he should not dismiss the case for want of jurisdiction. Can it be said, because justices of the peace have jurisdiction to try assaults and batteries, that for that reason they have jurisdiction of the subject-matter before an offense has been committed? And as well might the court determine that because justices of the peace have the exclusive right to try and determine cases of forcible entry and detainer, that such justices have jurisdiction of the subject-matter of such actions before an offense has been committed — before force has been used or entry into the premises been made, or the premises have been unlawfully detained, and that all this is not an excess of jurisdiction.”
In these hypothetical cases it is conceded that, by law, the justices had authority to try assaults and batteries and forcible entry and detainer; and yet, because some person, ignorant of the facts of the case or the law, had been unwise enough to bring the action before the cause of it had accrued, the court had no jurisdiction of the subject-matter.
These illustrations serve to show what has been apparent throughout the discussion of this question, that those who make the objection have confounded the distinction between the jurisdiction of a court and its erroneous exercise.
The logic of the argument is simply this: “It is true jurisdiction has been given to try the respective rights of the parties to the office; yet, because the time for bringing the action had not arrived, the court had no jurisdiction of the subject-matter,” thus mistaking its inability to exercise *448it in the particular case for tbe want of it. This objection is of no more force than if urged to an action in ejectment commenced in tbe district court by tbe owner of certain premises leased to a tenant before tbe demise expired, or on a promissory note before its maturity, in neither of wbicb .can it be said tbat tbe court bad no jurisdiction of the subject-matter. In tbe cases supposed, if tbe actions were sustained, tbe judgments, though erroneous, would be binding upon tbe parties unless reversed by a higher tribunal, and could be enforced by execution without rendering tbe opposite parties, tbe justices, or tbe officer who executes tbe process, liable as trespassers; nor could they be attacked collaterally in any other action. It is contended tbat tbe judge of tbe district court bad no authority to try tbe case at chambers, and tbat in doing so be exceeded bis powers, and bis judgment is therefore void.
This objection, as well as that to tbe jurisdiction of tbe district court, is singularly at variance with tbe whole course of proceeding on tbe part of those who urge it.. While pressing it, tbe court at tbe same time is asked to examine the entire record, and to determine whether there was not error committed in tbe finding of facts. 'In other words, tbe court should look into tbe merits of tbe case, wbicb can only be done when possessing jurisdiction. If tbe objection to tbe jurisdiction of tbe district court is not well taken, tbat to tbe jurisdiction of tbe judge at chambers is not tenable. Numerous authorities, both English and American, have been cited in support of tbe position tbat independently of a statute a judge at chambers has authority to bear and determine a case of this character, and they are not without great force, but it is not necessary to consider them, inasmuch as jurisdiction has been expressly conferred by tbe legislature in section 617 of the act of January 15, 1869, which provides among other things tbat district judges at chambers may try and determine writs of quo warranto.
Tbe parties having entered into a stipulation tbat tbe case might be beard at chambers, it is difficult to perceive tbe propriety of interposing such an objection in this court for tbe *449first time. Had counsel any just reason to belieYe that tbe judge bad no authority to try tbe case at chambers, every rule of correct practice demanded that no agreement should be entered into, tbe effect of which would be to take it out of the proper jurisdiction and send it to a tribunal without authority to hear it. It may not be within the limits of judicial propriety to say that such a proceeding was a fraud upon the court, and merits the severest censure; but the observation may be permitted that the effect of it, if successful, would have been to discontinue the suit by indirection, and thus baffle the ends of justice. Legal ethics are not slow to place the seal of disapprobation upon a practice of this character. .
I will now proceed to the other question, “ that the complaint does not state facts sufficient to constitute a cause of action.” The solution of this question depends upon the proper construction to be given to the statute under which the action is brought.
Section 274 is as follows: “An action may be brought by the district attorney in the name of the people of the United States, and of the territory of Idaho, upon his own information, or upon the complaint of a private party, against any person who usurps, intrudes into, or unlawfully holds or exercises any public office, civil or military, or any franchise within this territory. And it shall be the duty of the district attorney to bring the action whenever he has reason to believe that any such office or franchise has been usurped, intruded into, or unlawfully held or exercised by any person, or when he is directed to do so by the governor.” Section 275 provides, that whenever such action is brought, the district attorney, in addition to the state- . ment of the cause of action, may also set forth in the complaint the name of the person rightly entitled to the office, with a statement of his right thereto; and in such case, upon proof by affidavit that the defendant has received fees or emoluments belonging to the office, and by means of his usurpation thereof, an order may be granted by the judge of the supreme court, or a district judge, for the arrest of the defendant, and holding him to bail; and thereupon he *450may be arrested, and beld to bail in the same manner and with the same effect, and subject to the same rights and liabilities, as in other civil actions where the defendant is subject to arrest. Section 279: “When several persons claim to be entitled to the same office or franchise, one action may be brought against all such persons, in order to try their respective rights to such office or franchise.”
It is claimed, that though this section gives the right of action against all who claim to be entitled to the same office, yet the complaint must allege a user, and inasmuch as it contains no such averment, but on the contrary shows that both the contestants claim to be entitled to an office, the term of which did not commence until a day subsequent to the suit, it shows no right of action in behalf of the people against either of them. Numerous adjudged cases have been cited in support of this position, the most important of which is that of The People v. Thompson et al., 16 Wend. 656; but it is to be observed, that they were governed by statutes containing provisions almost precisely like those in section 274 of our act, and entirely different from the cases provided for in section 279. As the case in Wendell has been the one upon the authority of which the most reliance has been placed by those who urge the objection, I will proceed to quote from it all that is material to the question-, In that case, the attorney-general filed an information in the nature of a quo warranto, charging the defendants with claiming, using, and exercising the liberties, privileges, and franchise of a body politic and corporate, etc. To that portion of the information charging the defendants with claiming and exercising the liberties, etc., they answered that they never used such liberties, etc. The .attorney-general demurred to the answer, for the cause that it did not meet the charge of a claim on the part of the defendants to be a body politic, and the defendants joined in the demurrer.
“By the Court, Nelson, C. J. The demurrer of the attorney-general to so much of the plea as professes to answer the first count of the information, raises the question whether, under the revised statutes, authorizing an infor-*451malioii in the nature of a quo warranto, the defendants are bound to answer, specifically, the averment that they claim to use and exercise a franchise, etc. If they are obliged to answer a mere claim to exercise corporate privileges, disconnected from any allegation of user, then, undoubtedly, the plea is bad, for it contains only a denial of the user. The defendants, if so bound to answer, should have set forth title, or disclaimed. The language of the statute, so far as concerns this case, is as follows: £An information in the nature of a quo warranto, may be filed, etc., where any person shall usurp, intrude into, or unlawfully hold or exercise any public office, civil or military, or any franchise within the state,’ etc.” The learned judge then proceeds to say: “The first clause seems obviously to require something beyond a claim to an office, or to the exercise of a franchise, to authorize the institution of the proceeding. To usurp, intrude into, or unlawfully hold or exercise an office or franchise, means to take possession of the office or franchise without right, or unlawfully to hold or use the same after possession has been rightfully or wrongfully acquired. The words of the statute were taken from 9 Anne, ch. 20, sec. 4, under which act it has been repeatedly determined there must be a user or possession of the office or franchise, and that a mere claim is insufficient.” He then refers with approval to the case of Rex v. Ponsonby, which originated in the king’s bench in Ireland (the statute being a copy of 9 Anne), and it came before the king’s bench on error, where the judgment was reversed, which reversal was afterwards sustained by the house of lords. The information was filed against seven persons, charging them with usurping the office of free burgesses of the corporation of Newton. The question whether it would lie against two of them, wdto, though elected, had not been admitted or sworn in, came up in the pleadings.
Chief Justice Elder, who delivered the opinion of the court in error, stated one question to be, “ whether it, the information, lies against the two now acting burgesses;” and adds: “It clearly can not, upon this ground, that under the words of the statute there must be usurpation, in-*452trusión, or unlawful bolding. Now, claiming,” be says, ‘ ‘ which only appears against tbem, can by no construction be taken to amount to any of these, and it would be strange to imagine tbe statute intended to prevent tbe asserting or claiming a right.” If, as Chief Justice Eider, says, claiming an office does not mean a usurpation, intrusion, or unlawful bolding, it is difficult to understand why, under section 279, such an averment should be required in tbe complaint, as tbe action under it clearly lies upon a mere claim. At common law a writ of quo warranto runs against him who claims or usurps an office. (3 Bl. Com. 262.) The statute of Anne, and tbe New York statute under which tbe eases referred to arose, differ from tbe common law, inasmuch as under tbem an action will not lie against a mere claimant to an office, while at common law it could be maintained against him. If there had been no further provision in our statute than what is found in section 274 (this being substantially like the statute of Anne, and the revised statute of New York), the eases cited upon this point as authorities would probably have been decisive, but they can not be considered as applicable to actions brought under section 279, which is an enlargement of those statutes, and embraces, as did the common law, cases where only a claim to an office is set up. A careful scrutiny of the case in Wendell and the one in king’s bench, there cited, will satisfy any one that they were decided upon purely statutory grounds, and inasmuch as the statutes gave no right of action against one who only claimed an office, an allegation in an information of only a claim was not sufficient to maintain it. There can be no doubt that under our statute the people have the same right to inquire by what authority a person claims the right to an office as the crown had at common law, and there can be as little doubt that this action was properly brought for the purpose.
I might rest my argument on this point just here, without going into any further reasons to support it, but it may not be considered altogether unnecessary or unprofitable to examine the statute with a little closer attention to its several provisions, in order'to arrive at a more satisfactory un*453derstanding of its true meaning. It may be assumed, as a well-settled principle of interpretation, that sucb construction shall be given to a statute as shall give effect to each portion of it, and that all its provisions shall be taken together, in ascertaining the intentions of the law-giver. Guided by this rule, there can be no difficulty in arriving at the conclusion, that the legislature intended to provide, in sections 274 and 279, for two distinct classes of cases, one of which covers the case of a usurpation, etc., and the other that of a mere claim to an office.
It will be seen that, under section 274, one or more persons may be proceeded against where they usurp, intrude into, or unlawfully hold or exercise an office or‘franchise; and the district attorney, under section 275, may, in addition, also set forth in the complaint the name of the person rightfully entitled to the office, with a statement of his right thereto. Under section 279 the proceeding may be had against all the claimants, merely on their claiming to be entitled to the office, in order to try which of them has the lawful right to it; and in such proceeding it is not necessary for the district attorney to set forth the name of the person rightfully entitled to it. When the action is brought under section 274, and proofs are made that the defendant has received fees or emoluments belonging to the office, he maybe arrested and held to bail for the security of the person lawfully entitled to the office.
When suit is brought under section 279, no such proofs are required, and the defendants can not be arrested and held to bail, because the district attorney is not required to state who is lawfully entitled to the office, nor to set forth his title. The law in such eases presupposes that there has been no user by either of the parties proceeded against. The object of the section is to settle conflicting claims to an office before a user; and to carry it into effect, the claimants are required by the people, as under the writ of quo warranto, to show by what authority they support their respective claims. Under section 274, the action is against a wrong-doer, against one who usurps or intrudes into an office, or being in it, unlawfully holds or exercises it against *454tbe rights of the people or of another lawfully entitled to it; and if against the latter, the defendant is liable to him for any fees or emoluments he has received while exercising the office, and in both cases, in addition, to a fine not exceeding five thousand dollars, as a penalty, to be paid into the public treasury. Under this section the judgment may be against the defendant and in favor of the claimant, or it may be against the defendant only; and in the latter case the right of the contesting claimant is not determined; while under section 279 the judgment must determine the rights of all the claimants, and no damages can be awarded or fine imposed against either; one action settles the respective rights of all, and the judgment is conclusive. It is a mere election contest, to be settled, as under the common law proceeding, by quo warranto, in advance of taking possession of the office by either of the contestants upon a mere claim of right thereto. But it is said, and in this view Justice Whitson concurs, that section 279 is designed to meet a case for which section 274 has not provided, as, for instance, the unlawful holding of an office by three county commissioners against the claims of those who have been elected to succeed them.
I am prepared to concede that under section 274, a joint action can not be brought against all three of the county commissioners to try by what authority they hold the office against the claims of their successors, inasmuch as the office is not a joint one, and the rights of each may depend upon entirely different questions; but while this is so, section 279 does not meet the ease. This is evident from the language of the section, and besides, the difficulty of trying the right to an office held by two or more persons, and by different titles in a joint action, which would be met with in case the suit should be brought under section 274, would necessarily arise, when brought under this section. If the language of the section had been, “when several persons claim to exercise the office by different rights,” it would have covered the supposed case.
In the case of the county commissioners, it would be an extraordinary circumstance if they were each elected by *455tbe same majorities and the same votes, and it would only be in sucb cases tbat ,tbeir claims to tbe office could be tried in a joint action. It is not to be supposed tbat tbe legislature contemplated sucb an extreme or improbable case, and tbat tbis law was designed to meet it. It may be asked, if tbis section does not give tbe right of action in tbe supposed case, bow can questions of tbis character be judicially determined ? Tbe answer is obvious. Tbe respective rights of tbe incumbents to bold tbe office may be tried in separate actions under section 274, But it is claimed tbat where several persons claim to be entitled to tbe same office, as under section 279, it must be held to be to an office in prescenti, one of which tbe successful claimant can take possession, under and by virtue of tbe judgment in bis favor, at once. Tbis is a very narrow and technical view of its meaning. Suppose tbis action bad not been brought until Lindsay bad taken possession and was exercising tbe duties of tbe office, and tbat judgment bad been in favor of Bryon, can it be contended tbat be would be immediately entitled to take possession of it? He must first get bis commission, give bond, and take tbe oath of office; in other words, be must comply with tbe requirements of tbe law, before be can enter upon tbe office and undertake its duties. Tbe section means nothing more, than if judgment is given in favor of one of tbe claimants, be shall be entitled to the office when bis term commences; and when be shall have complied with tbe law íd other respects, a judgment in bis favor would be subject to tbe conditions prescribed by law, and would not ex proprio vigore operate to invest him with tbe office eo instanti, were there any other requirements of tbe law to be observed.
Again, it is claimed tbat tbe act under consideration does not give tbis right of action, because tbe legislature has provided another mode of contesting elections, in tbe act passed December 17, 1864. It is true tbis act has made sucb provision; and though it is contended tbat tbe probate court bad no authority (as therein provided) under tbe organic act to entertain jurisdiction, yet I am not disposed to place my answer upon tbat ground.
*456The act under which this suit was brought, was passed on the fifteenth of December, 1864, and was the only one then in force, under which an election contest could be had. Had there been no saving clause or provision in the act of December 17, it might have been contended, with some show of reason, that it was not the intention of the legislature to preserve the power in the district courts to decide such contests; but section 40 expressly provides that the act shall not be construed so as to impair in any way the right of any person to contest any election in the manner otherwise provided by statute. This must refer to the statute under which this action is brought, for, as I have said, this was the only statute on the subject in force, when the latter act was passed. Great stress has been laid upon the fact, that the act in question has provided that judgment of exclusion shall be given against the defendant, if found guilty; and that because, as is claimed, no such judgment can be pronounced in this case, the action is not well brought. It may be answered, that such a position is not tenable, because the conclusion drawn from the premises is not sound.
The term “exclude,” used in the act, does not mean ouster from, or dispossession of, an office, but, that if a party is guilty, he shall be debarred, or precluded, or hindered from entering into or holding it; and the omission in the statute of a case where only a claim to an office is adjudged to be unlawful, does not prevent its application to the latter, by fair construction. The judgment of the district court, that Lindsay be “ precluded” from the office, is not therefore obnoxious to the criticisms that have been indulged in by those who object to its form, as not being authorized by the statute. The whole argument of counsel, who seek a reversal of the judgment on the ground that the complaint is not sufficient, is nothing more or less than this, that in every conceivable action which the statute authorizes, a user must be alleged, or it must fail. If this view be correct, for what purpose, may I ask, was section 279 enacted ? If it is necessary to make the same allegations in a complaint, in this respect, when the action is brought *457under this section or under section 274, then the conclusion is inevitable, that the section is meaningless, for the latter covers every case that can arise under the other section.
It is said that the complaint does not show that Bryon and Lindsay claimed to be entitled to the office, but it shows that in about two months from that time, that is, on the first Monday in January, 1871, they may claim that they will be entitled to the possession of said office. What the complaint does allege is, “that on the sixth day of June, 1870, at a general election held in the county of Ada of this territory, pursuant to the statute, for the election, among other officers, of a sheriff of said county for the term of two years from the first Monday of January, 1871, the said L. B. Lindsay and William Bryon were each candidates for said office, and were each voted for by the qualified electors of said county for the said office, for the said term. That the number of votes received by each of said defendants was nearly equal, and each of the defendants claims to have received the highest number of votes given and cast at said election by the legal voters of said county for said office for the term aforesaid, and to be entitled to the said office of sheriff of said county for the said term of two years from and after the first Monday in January, A. D. 1871.” It is quite obvious that this is not a mere allegation, that on the first Monday in January they (the defendants) may claim that they will be entitled to the possession of the office.