A person is guilty of aggravated assault on a judge when, with intent to cause serious physical injury and prevent a judge from performing official judicial duties, such person causes serious physical injury to such judge. For the purposes of this section, the term judge shall mean a judge of a court of record or a justice court. Aggravated assault on a judge is a class B felony.
New York Legal Code