(a) A defendant is prejudiced by errors relating to rights arising other than under the Constitution of the United States when there is a reasonable possibility that, had the error in question not been committed, a different result would have been reached at the trial out of which the appeal arises. The burden of showing such prejudice under this subsection is upon the defendant. Prejudice also exists in any instance in which it is deemed to exist as a matter of law or error is deemed reversible per se.
(b) A violation of the defendant's rights under the Constitution of the United States is prejudicial unless the appellate court finds that it was harmless beyond a reasonable doubt. The burden is upon the State to demonstrate, beyond a reasonable doubt, that the error was harmless.
(c) A defendant is not prejudiced by the granting of relief which he has sought or by error resulting from his own conduct. (1977, c. 711, s. 1.)