(a) Any defendant in a criminal prosecution, aggrieved by any decision of the Superior Court, upon the trial thereof, or by any error apparent upon the record of such prosecution, may be relieved by appeal, petition for a new trial or writ of error, in the same manner and with the same effect as in civil actions. No appeal may be taken from a judgment denying a petition for a new trial unless, within ten days after the judgment is rendered, the judge who heard the case or a judge of the Supreme Court