An erroneous judgment is one rendered according to the course and practice of the court, but contrary to law, or upon a mistaken view of the law, or upon an erroneous application of legal principles, as where judgment is given for one party when it should have been given for another; or where the pleadings require several issues and only one. is submitted; or where the undenied allegations of the complaint are not sufficient to warrant a recovery; and in other cases involving a mistake of law. White v. Albertson, 14 N. C., 241, 244; Wolfe v. Davis, supra; Koonce v. Butler, 84 N. C., 222; Spillman v. Williams, 91 N. C., 483; May v. Lumber Co., 119 N. C., 96; Cowles v. Cowles, 121 N. C., 272; Stafford v. Gallops, supra; Becton v. Dunn, 142 N. C., 172; Rawles v. Mayo, 163 N. C., 177. A judgment may be regular and at the same time erroneous; that is, it is not irregular because it may happen to be erroneous. Error does not necessarily constitute irregularity or necessarily enter into it. Skinner v. Moore, supra; Dobbin v. Gaster, 26 N. C., 71.
A void judgment is one that has semblance but lacks some essential element, as jurisdiction or service of process. McKee v. Angel, 90 N. C., 60; Duffer v. Brunson, supra.
If a judgment is irregular the remedy is by a motion in the cause made within a .reasonable time; if erroneous, the remedy is by appeal. Spillman v. Williams, supra; May v. Lumber Co., supra; Henderson v. Moore, 125 N. C., 383.
It is important to remember that the plaintiffs object was to enforce the specific performance of the option and that by way of avoidance the defendant pleaded, not only the plaintiff’s failure to execute a proper deed of trust, but her fraudulent representation, as an inducement to the contract, that she was not a married woman. The ground upon which the defendant moved for judgment against the plaintiff was the absence of a reply to the alleged counterclaim. It is apparent, then, that the judgment dismissing the action was not void; the defendant’s motion presented a question which it was the duty of the clerk to decide. The authorities hold that the mere fact that a pleading does not state a cause of action does not make a default judgment void if the allegations are sufficient to challenge the attention of the court and invoke its judicial action to determine the sufficiency thereof, because a court having jurisdiction of the parties and the subject-matter may determine for itself the sufficiency of the pleading. 3 Freeman on Judgments (5 ed.), sec. 1297; 33 C. J., 1133, sec. 81.
It is equally conclusive, we think, that the judgment was not irregular. The clerk had express statutory authority to render a judgment by default; his judgment was not given contrary to the course and practice of the court. 3 C. S., 593. His error, if he committed error, arose from