(After stating the foregoing facts.) Construing the petition, with the view of determining whether it sets forth a cause of action for the writ of prohibition, it is clear that no proper cause is pleaded for that remedy. Prohibition is. the counterpart of mandamus. It is to restrain subordinate courts and inferior judicial tribunаls from exceeding their jurisdiction, where no other legal remedy or relief is given. Code, § 64-301. It is a writ to prevent a tribunal possessing judicial powers from exercising jurisdiction over matters not within its cognizance, or from exceeding its jurisdiction in mattеrs of which it has cognizance.
City of Macon
v.
Anderson,
155
Ga.
607 (2) (
If the petition and prayers be construed as an attempt to secure the relief sought by an injunction, there would be no proper cause of action pleaded, as the proсeeding is predicated upon the issue of title to a рublic office, and injunction is not a primary remedy to detеrmine that question.
Davis
v.
Dawson,
90
Ga.
817 (3) (
Accоrdingly, the court erred in overruling the demurrer; and further proceedings in the case were nugatory.
Judgment reversed.
