Defendant by information was charged with a felony, to-wit, receiving stolen goods, and with four prior convictions of felonies in other states. He the prior convictions and was convicted on the primary charge and sentenced as an habitual criminal. From this judgment he appealed.
(People
v.
Moore,
It may be conceded for the purpose of this case that three of the four prior convictions admitted by defendant are not felonies in this state. Such concession, however, can be of no assistance to the defendant, since we are of the opinion that the mistake made by defendant cannot be cured by a petition for the writ of error,
coram nobis-,
which “is in effect an attack upon the judgment, asking that it be set aside as void on the grounds and for the reasons already noticed, and that defendant be allowed to enter a plea of not guilty”
(People
v.
Superior Court,
4 Cal. (2d) 136 [
The frequent resort to a petition for this writ in recent years persuades one that those, who have been convicted of crime, have come to look upon it as a remedy which can work magic merely by reason of its invocation. There is, however, no shibboleth in a petition for a writ of error,
coram nobis,
even though the Latin name has survived to the present time. At common law it performed omnibus functions to call the attention of a trial court to its errors, and to give such court an opportunity to correct them. ‘ At the time this writ came into general use there was no remedy by appeal or by motion for new trial. The ordinary writ of error afforded to a considerable extent the remedy now available by appeal and the writ of
coram nobis
to a very limited extent the remedy now available upon motion for new trial.”
(People
v.
Reid,
As said in
People
v.
Mooney, supra,
at page 529 : “It is in those eases where the defendant has been denied a trial upon the merits, in other words, where there has been no trial
*254
at all, that relief of this kind may be granted. In such eases it is obvious that the statutory remedies have no application and that the defendant is wholly without remedy; and it is upon that theory that we look to the common law to provide a remedy. Such a case was
People
v.
Perez,
We fail to see how the position of defendant in this proceeding is any different from that of a person who pleads guilty to a crime believing in fact that he was guilty of the same at the time of his plea, when, as a matter of law, the facts could not establish his guilt. In the latter situation a defendant would have the undoubted right to make a motion to change his plea. (Pen. Code, sec. 1018;
People
v. Bacciocco,
The order denying the petition is affirmed.
Conrey, P. J., and Houser, J., concurred.
A petition by appellant to have the cause heard in the Supreme Court, after judgment in the District Court of Appeal, was denied by the Supreme Court on October 24, 1935.
