CODE OF VIRGINIA WHEN WRIT OF ERROR LIES IN CRIMINAL CASE FOR ACCUSED; WHEN FOR COMMONWEALTH; WHEN FOR COUNTY, CITY OR TOWN (§ 19.2-317) A. A writ of error shall lie in a criminal case to the judgment of a circuit court or the judge thereof, from the Court of Appeals as provided in § 17.1-406. It shall lie in any such case for the accused and if the case is for the violation of any law relating to the state revenue, it shall lie also for the Commonwealth. B. A writ of error shall also lie for any county, city or town from the Supreme Court to the judgment of any circuit court declaring an ordinance of such county, city or town to be unconstitutional or otherwise invalid, except when the violation of any such ordinance is made a misdemeanor by state statute. C. A writ of error shall also lie for the Commonwealth from the Supreme Court to a judgment of the Court of Appeals in a criminal case, except where the decision of the Court of Appeals is made final under § 17.1-410 or § 19.2-408. HISTORY: Code 1950, § 19.1-282; 1960, c. 366; 1975, c. 495; 1984, c. 703; 1997, c. 358.