What circumstances would prevent a judge from hearing a case? 
A judge would be prohibited from hearing a case if the offense has been committed against them personally, if they have previously served as a Judicial Police Officer, Public Prosecution, or attorney for any party involved in the case, or if they have given testimony or performed expert witness duties regarding the specific case.