(a) A person may not be prosecuted for or convicted of any offense that the person committed when younger than 15 years of age except:
(1) perjury and aggravated perjury when it appears by proof that the person had sufficient discretion to understand the nature and obligation of an oath;
(2) a violation of a penal statute cognizable under Chapter 729, Transportation Code, except for conduct for which the person convicted may be sentenced to imprisonment or confinement in jail;
(3) a violation of a motor vehicle traffic ordinance of an incorporated city or town in this state;
(4) a misdemeanor punishable by fine only;
(5) a violation of a penal ordinance of a political subdivision;
(6) a violation of a penal statute that is, or is a lesser included offense of, a capital felony, an aggravated controlled substance felony, or a felony of the first degree for which the person is transferred to the court under § 54.02, Family Code, for prosecution if the person committed the offense when 14 years of age or older; or
(7) a capital felony or an offense under § 19.02 for which the person is transferred to the court under § 54.02(j)(2)(A), Family Code.
(b) Unless the juvenile court waives jurisdiction under § 54.02, Family Code, and certifies the individual for criminal prosecution or the juvenile court has previously waived jurisdiction under that section and certified the individual for criminal prosecution, a person may not be prosecuted for or convicted of any offense committed before reaching 17 years of age except an offense described by Subsections (a)(1)-(5).
(c) No person may, in any case, be punished by death for an offense committed while the person was younger than 18 years.
(d) Notwithstanding Subsection (a), a person may not be prosecuted for or convicted of an offense described by Subsection (a)(4) or (5) that the person committed when younger than 10 years of age.
(e) A person who is at least 10 years of age but younger than 15 years of age is presumed incapable of committing an offense described by Subsection (a)(4) or (5). This presumption may be refuted if the prosecution proves to the court by a preponderance of the evidence that the actor had sufficient capacity to understand that the conduct engaged in was wrong at the time the conduct was engaged in. The prosecution is not required to prove that the actor at the time of engaging in the conduct knew that the act was a criminal offense or knew the legal consequences of the offense.