OPINION
delivered the opinion of the court,
The petitioner, Patrick Thurmond, appeals pro se from the Johnson County Criminal Court’s dismissal of his petition for habeas corpus relief from his convictions for one count of aggravated burglary, two counts of aggravated rape, one count of attempted aggravated rape, and one count of aggravated sexual battery and effective sentence of fifty years. The petitioner claims (1) that his sentences for attempted aggravated rape and aggravated sexual battery are illegal because the offenses are not subject to the multiple rаpist classification under Tennessee Code Annotated section 39-13-523, (2) that his judgments of conviction are void on the two counts of aggravated rape and attempted aggravated rape because his classification as a multiple rapist is an enhanced punishment that was not charged in the indictment as required by Tennessee Code Annotated section 40-35-203(e), and (3) that the trial court violated Tennessee Code Annotated section 29-21-108(b) in failing to grant a writ. We conclude that the sentences for attempted aggravated rape and aggravated sexual battery are illegal. We аffirm the trial court’s judgment in part, reverse the judgment in part, and remand the case.
This case relates to the petitioner’s convictions by a Davidson County Criminal Court jury for two counts of aggravated rape, one count of attempted aggravated rape, one count of aggravated sexual battery, and one count of aggravated burglary. The petitioner was sentenced as a multiple rapist to twenty years on each aggravated rape count, ten years for the attempted aggravated rape count, and ten years for the aggravated sexual battery count, and as a Range I, standard offender to three years for the aggravated burglary count. The trial court ordered the aggravated rape and attempted aggravated rape sentences to run consecutively and the aggravated sexual battery and aggravated burglary sentences to run cоncurrently for
*133
an effective sentence of fifty years in confinement. The petitioner filed a direct appeal, and this court affirmed his conviction.
See State v. Patrick Thurmond,
No. 01C01-9802-CR-00076, Davidson County,
Initially, we note that any relief to which a petitioner is entitled through exercise of the writ of habeas corpus is likewise attainable through the appellate process.
See State ex rel. Danny Owens v. A.C. Gilless,
No. 02C01-9108-CR-00174, Shelby County, slip op. at 7-8,
The petitioner contends that the trial court erred by summarily dismissing his petition and that his sentences for the aggravatеd rapes, attempted aggravated rape, and aggravated sexual battery are void. He claims that the multiple rapist classification does not apply to the attempted aggravated rape or aggravated sexual battery and that the judgments are in direct contravention оf Tennessee Code Annotated section 39-13-523. He claims the aggravated rape and attempted aggravated rape sentences are in direct violation of Tennessee Code Annotated section 40-35-203(e) because the indictments did not charge the defendant as a multiple rapist аnd the jury did not find the petitioner was a multiple rapist. He claims the trial court violated Tennessee Code Annotated section 29-21-108(b) in failing to grant a writ of habeas corpus.
The state asserts that the petitioner was properly classified as a multiple rapist. The state concedes aggravated sexual battery is not covered under the definition of “multiple rapist” but asserts the error does not entitle the petitioner to habeas *134 corpus relief. The state asserts the illegal judgment may be corrected by the sentencing court at anytime. The state asserts the trial court properly аpplied the law in sentencing the petitioner as a multiple rapist for the aggravated rapes and attempted aggravated rape. The state asserts a separate indictment for a second or subsequent violation of the same offense was not required for applicatiоn of the multiple rapist statute. It asserts the multiple rapist classification under Tennessee Code Annotated section 39-13-523(a)(2) limits the petitioner’s parole eligibility and does not limit the power of the court to impose a particular sentence.
The trial court may summarily dismiss a petition for writ of habeas corpus relief when the petitioner does not state a cognizable claim.
Hickman v. State,
I. MULTIPLE RAPIST CLASSIFICATION
The petitioner contends that the trial court improperly sentenced him as a multiple rapist on his attempted aggravated rape and the aggravated sexual battery convictions because Tennessee Code Annotated section 39-13-523 applies only to aggravatеd rape or rape convictions. The petitioner asserts that his judgments on these two counts are illegal and that the trial court erred in denying him relief. The state concedes that aggravated sexual battery is not covered under the definition of “multiple rapist.” The state asserts the petitionеr is not entitled to habeas corpus relief because the petitioner’s sentence was entered pursuant to a jury trial, and the trial court can correct an illegal judgment at any time.
Tennessee Code Annotated section 39-13-523(a)(2) states
“Multiple rapist” means a person convicted two (2) or more times of violating the provisions of § 39-13-502 [aggravated rape] or § 39-13-503 [rape], or a person convicted at least one (1) time of violating § 39-13-502, and at least one (1) time of § 39-13-503.
Classification as a multiple rapist requires that the defendant “serve the entire sentence imposed by the court undiminished by any sentence reduction credits such person may be eligible for or earn.” T.C.A. § 39-13-523(b). The statute requires that at least one of the required offenses occur on or after July 1, 1992.
See
T.C.A. § 39-13-523(e);
State v. Johnson,
The petitioner was convicted of two counts of aggravated rape, both occurring after the enactment of the multiple rapist statute. The petitioner also has аn additional prior rape conviction as noted in his direct appeal and in his appeal for post-conviction relief.
See Thurmond v. State,
slip op. at 5,
“Normally, it is a rule of statutory construction which is well recognized by our courts, that the mention of one subject in a statute means the exclusion of other subjects that are not mentioned.”
State v. Harkins,
We conclude that the judgments for the attempted aggravated rape and the aggravated sexual battery convictions are in direct contravention of statute and void because the petitioner could not be classified as a multiple rapist for those offenses. We remand this case to the Johnson County Criminal Court to vacate the petitioner’s attempted aggravаted rape and aggravated sexual battery sentences in counts four and five of case number 95-B-1027. The trial court should transfer the matter to the Davidson County Criminal Court, as the convicting court, for the determination of the petitioner’s appropriate offender classification for the attеmpted aggravated rape and aggravated sexual battery convictions and for the entry of corrected judgments.
II. SEPARATE INDICTMENT FOR MULTIPLE RAPIST CLASSIFICATION
The petitioner contends that his sentences for aggravated rape and attempted aggravated rape are in direct violation of Tennessee Code Annotated section 40-35-203(e). The petitioner asserts the trial court lacked authority to impose an enhanced sentence because there were no separate indictments charging the petitioner as a multiple rapist or a jury finding that the petitioner was a multiple rapist. The state asserts the multiple rapist classification under Tennessee Code Annotated section 39-13-523(a)(2) limits the petitioner’s parole eligibility and does not limit the power of the court to impose a particular sentence under Tennessee Code Annotated section 40-35-203(e).
Tennessee Code Annotated section 40-35-203(e) addresses the procedure for the trial court’s imposition of a sentence. It states
If the criminal offense for which the defendant is charged carries an enhanced punishment for a second or subsequent violation of the same offense, the indictment in a separate сount shall specify and charge such fact. If the defendant is convicted of the offense, then the jury must find that beyond a reasonable doubt the defendant has been previously convicted the requisite number of times for the same offense. Upon such finding, the defendant shall be subject to the authorized terms оf imprisonment for the felonies and misdemeanors as set forth in § 40-35-111.
*136
T.C.A. § 40-35-203(e). This section refers to section 40-35-111, which outlines the authorized terms of imprisonment and fines for felonies and misdemeanors. The multiple rapist classification statute addresses release eligibility of a defendant who is classified as a multiple rapist. Therefore, Tennessee Code Annotated sections 39-13-523 and 40-35-203(e) deal with two different types of sentence enhancements.
Andre Larmont Mayfield v. State,
No. M2004-01408-CCA-R3-HC, Davidson County, slip op. at 3,
Tennessee Code Annotated section 39-13-523 does not require the multiple rapist classification for parole eligibility purposes to be included in the indictment. The classification as a multiple rapist is automatic and is not left to the discretion of the trial court or the prosecutor.
See Andre L. Mayfield v. State,
No. E2005-00138-CCA-R3-HC, Johnson County, slip op. at 5,
III. FAILING TO GRANT WRIT
The petitioner claims that the trial court violated Tennessee Code Annotated section 29-21-108(b) in failing to grant him habeas сorpus relief. The petitioner asserts he complied with all the required procedures for applying for a writ of habe-as corpus. The petitioner asserts the trial court failed to uphold its duty by wrongfully refusing to issue a writ of habeas corpus. The state did not respond to this issue.
Section 29-21-108 presents
(a) It is the duty of the court оr judge to act upon such applications instanter.
(b) A wrongful and willful refusal to grant the writ, when properly applied for, is a misdemeanor in office, besides subjecting the judge to damages at the suit of the party aggrieved.
T.C.A. § 29-21-108. We do not believe subsection (b) relates to judges who conclude in their judicial capacity that the facts or law do not warrant relief but who are determined on appeal to be in error. In any event, we note nothing contained in this allegation would entitle the petitioner to habeas corpus relief.
CONCLUSION
Based on the foregoing and the record as a whole, the judgment of the trial court is affirmed in part and reversed in part, and the case is remanded to the trial court.
